OneSignal exported endpoints cause "VAPID public key mismatch" in Firefox v2 push
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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 a401 Unauthorizederror:
{
"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?
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 312
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web-push-libs/web-push-php
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
web-push-libs/web-push-php#441 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
web-push-libs/web-push-php#430 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
web-push-libs/web-push-php#412 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
web-push-libs/web-push-php#411 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
web-push-libs/web-push-php#408 · 2 comments ·
All issues in web-push-libs/web-push-php
Similar issues
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
UX
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
OpenConext/OpenConext-engineblock#2122 ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Automattic/safe-publish#594 ·