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
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- firebase, javascript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 3.6k
- Forks
- 328
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de web-push-libs/web-push
-
No Releases Since 3 Years AgoAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
web-push-libs/web-push#978 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
web-push-libs/web-push#977 ·
-
Does it can be use in China?Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
web-push-libs/web-push#942 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
web-push-libs/web-push#940 · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
web-push-libs/web-push#939 · 3 comentarios ·
Todos los issues de web-push-libs/web-push
Issues similares
-
FEATURE REQUEST
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
linuxmint/cinnamon-spices-extensions#1193 ·
Los mantenedores suelen responder en 1 día
-
ds-bot collides with dsh-argp: tool "recall" is already registered, Bot layer never activatesAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Fei2411/DeepSeek-Bot#703 ·
-
area:web first-timers-only good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
career-ops-hq/career-ops#6264 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
catppuccin/firefox#21 ·
-
[Server Submission]: Wiro AIAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 83/100
cline/mcp-marketplace#3394 ·