2017-04-04 22 views
0

我試圖使用此設備註冊令牌發送設備推送通知,使用firebase在科爾多瓦(fcm-node 插件的節點)發送設備推送通知但是當我嘗試將通知發送到註冊的設備,獲得以下錯誤:由於應用程序/無效憑據錯誤,無法發送設備推送通知

{ 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系統更好的是與Internet時間服務器同步時間。

相關問題