angular / angular/angularfire

getToken error

Open
#3,295 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7.8k
Forks
2.2k
Avg merge
22h 28m
Merged PRs (30d)
6

Description

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)
`

Contributor guide

Open the contributing guide

Research direction

Start with the Firebase Cloud Messaging web receive documentation linked in the report and reproduce the getToken failure. Trace the reported stack from getToken.ts through create-installation-request.ts and common.ts, using the 400 INVALID_ARGUMENT response to identify the missing or invalid request input; done means getToken completes successfully under the documented setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, firebase, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.