Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#684 4 commenti 2 reazioni 0 assegnatari Vedi su GitHub

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
Ambito
api, backend

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di web-push-libs/web-push

Tutte le issue di web-push-libs/web-push

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.