Closed akrylysov closed 6 years ago
Looks like this is more a Vapid issue than webpush. (There's a dependency issue.) https://github.com/web-push-libs/vapid/issues/62
Nope, I was wrong. Changing to VAPID RFC spec still fails for GCM. (Did fix up the raw key handler input finally)
For what it's worth, I'm not able to reproduce your problem. Using the demo page over on https://gauntface.github.io/simple-push-demo/ I'm able to send requests through, albeit, using a key from that page. What I can tell you is that js and python have slightly different key generation methods that sometimes produce incompatible keys. The difference happens in the cryptography component and fixing that is way outside of my skill set.
Try generating a different VAPID key and see if that works.
Closing, idle
The node cli app works fine:
but pywebpush fails using the same keys:
throws an exception: