getToken error
- 主要語言
- TypeScript
- 星號
- 7.8k
- 分支
- 2.2k
- 平均合併
- 22 小時 28 分鐘
- 30 天內合併 PR
- 6
描述
I just followed the instructions here
https://firebase.google.com/docs/cloud-messaging/js/receive?authuser=0&hl=en#web-version-9
i get this error when using getToken
`
FirebaseError: Installations: Create Installation request failed with error "400 INVALID_ARGUMENT: Request contains an invalid argument." (installations/request-failed).
at getErrorFromResponse (common.ts:53:1)
at async createInstallationRequest (create-installation-request.ts:77:1)
at async registerInstallation (get-installation-entry.ts:138:1)
at async completeInstallationRegistration (get-token.ts:51:1)
at async getToken (get-token.ts:36:1)
at async getHeaders (requests.ts:157:1)
at async requestGetToken (requests.ts:43:1)
at async getNewToken (token-manager.ts:139:1)
at async requestPermission (App.tsx:93:1)
`
貢獻指南
研究方向
從報告中連結的 Firebase Cloud Messaging Web 接收文件開始,並重現 getToken 失敗。追蹤從 getToken.ts 經由 create-installation-request.ts 和 common.ts 的回報堆疊,使用 400 INVALID_ARGUMENT 回應來識別缺少或無效的請求輸入;在文件所述的設定下 getToken 成功完成即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, firebase, typescript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100