Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de 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

Abierto
#684 4 comentarios 2 reacciones 0 asignados Ver en GitHub

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
Área
api, backend

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de web-push-libs/web-push

Todos los issues de web-push-libs/web-push

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.