the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- firebase, javascript
Direzione di ricerca
Start at the reported webpush.setGCMAPIKey(process.env.FCM_API_KEY) entry point and review how the Firebase project, sender ID, and server key are associated with the browser subscription. Compare the configured Firebase credentials with the subscription and sending request, then verify that a notification succeeds in Chrome or Firefox.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Operating System: Linux
Node Version: 14.17.3
web-push Version: 3.4.5
Please select any browsers that you are experiencing problems with:
- [ x] Chrome
- [x ] Firefox
- Opera for Android
- Samsung Internet Browser
- Other
Problem
the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console.
i am using the method webpush.setGCMAPIKey(process.env.FCM_API_KEY as string) to set the server key; but how can i set the sender ID? how can i set the project with firebase cloud messaging?
Please explain what behaviour you are seeing.
when i try to send a notification i get the message: the key in the authorization header does not correspond to the sender ID used to subscribe this user. Please ensure you are using the correct sender ID and server Key from the Firebase console
Expected
i expect the web push library send the request to FCM and i get the notification on my browser.
Please explain what you expected to happen
Features Used
- VAPID Support
- [ x] GCM API Key
- Sending with Payload
Example / Reproduce Case
Please provide a code sample that reproduces the issue. If there is a
repository that reproduces the issue please put the link here.
Other
Please put any remaining notes here.
- Lingua principale
- JavaScript
- Stelle
- 3.6k
- Fork
- 328
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di web-push-libs/web-push
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
web-push-libs/web-push#978 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
web-push-libs/web-push#977 ·
-
Does it can be use in China?Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
web-push-libs/web-push#942 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
web-push-libs/web-push#940 · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
web-push-libs/web-push#939 · 3 commenti ·
Tutte le issue di web-push-libs/web-push
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
I maintainer di solito rispondono entro 1 giorno
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apex-dev-tools/apex-log-parser#199 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
ReadBufferStream.addBuffer adds the full ArrayBuffer of a typed array view, and ignores its byteOffsetForse già presa @wayfarer3130 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Expo 57 example: pnpm install fails with ERR_PNPM_TRUST_DOWNGRADEForse già presa @github-actions l’ha presa oggi. Apertabug react-native team/client-libraries
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PostHog/posthog-js#5442 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno