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