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

OneSignal exported endpoints cause "VAPID public key mismatch" in Firefox v2 push

Aperta
#429 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
php
Ambito
api, backend

Direzione di ricerca

Compare the OneSignal-exported Firefox v2 endpoints with the PHP Web Push example linked in the issue, starting with how each handles the VAPID key and endpoint version. Reproduce the 401 response and verify whether setAutomaticPadding(false) changes it. Done means identifying the cause of the VAPID public key mismatch and documenting or fixing the library behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I'm encountering problem delivering push notifications to Firefox using endpoints exported from OneSignal database.

  • Notifications sent to endpoints beginning with https://updates.push.services.mozilla.com/wpush/v1/ are working correctly.
  • However, endpoints starting with https://updates.push.services.mozilla.com/wpush/v2/ consistently return a 401 Unauthorized error:
{
  "code": 401,
  "errno": 109,
  "error": "Unauthorized",
  "message": "VAPID public key mismatch",
  "more_info": "http://autopush.readthedocs.io/en/latest/http.html#error-codes"
}

Sending to Chrome and Edge works fine using the same VAPID key. OneSignal claims the VAPID key is the same.

Tried disabling automatic padding via setAutomaticPadding(false), but it had no effect.

PHP Web Push example works fine with the same Firefox for Windows v142.0.1.

What am I overlooking?

Lingua principale
PHP
Stelle
1.9k
Fork
312
Merge medio
1g 15h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

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-php

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

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.