2017-04-04 27 views
0

linkを使用してコードベース(fcm-node ノード用)でfirebaseを使用してデバイスプッシュ通知を送信しようとしていますが、デバイス登録トークンしかし、私はエラーの下に取得し、登録されたデバイスに通知を送信しようとすると:app/invalid-credentialエラーのためにデバイスプッシュ通知を送信できません

{ Error: Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "getaddrinfo ENOTFOUND accounts.google.com accounts.google.com:443". at FirebaseAppError.Error (native) at FirebaseAppError.FirebaseError [as constructor] (C:\Users\212606402\Learning\Alert server\pushalert-server\alert-push-notification-server\node_modules\firebase-admin\lib\utils\error.js:25:28) at new FirebaseAppError (C:\Users\212606402\Learning\Alert server\pushalert-server\alert-push-notification-server\node_modules\firebase-admin\lib\utils\error.js:70:23) at C:\Users\212606402\Learning\Alert server\pushalert-server\alert-push-notification-server\node_modules\firebase-admin\lib\firebase-app.js:78:23 at process._tickCallback (internal/process/next_tick.js:103:7) errorInfo: { code: 'app/invalid-credential', message: 'Credential implementation provided to initializeApp() via the "credential" property failed to fetch a valid Google OAuth2 access token with the following error: "getaddrinfo ENOTFOUND accounts.google.com accounts.google.com:443".' } }

は誰もがここで間違っているものを私を助けてください。

このthreadも見ましたが、これは別のエラーです。

答えて

1

解決方法は、システムの日付/時刻を更新することです。

Windowsシステムでは、インターネット時刻サーバーと時刻を同期させる方が効果的です。

関連する問題