Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Public key is not a valid point on the curve #56

Open
komi2013 opened this issue Oct 26, 2023 · 1 comment
Open

Public key is not a valid point on the curve #56

komi2013 opened this issue Oct 26, 2023 · 1 comment

Comments

@komi2013
Copy link

I try this library but I got this error
Public key is not a valid point on the curve

when I use Node.js, it works but golang doesn't work
could you tell me what was wrong?

@komi2013
Copy link
Author

subscribe has to be like this format

{
    "endpoint":"https://updates.push.services.mozilla.com/wpush/v2/gAAAAABlXQ",
    "expirationTime":null,
    "keys":{
        "auth":"13BeZk6OxQ",
        "p256dh":"BGMHqnyXJ35MP2OgCM3ZvI"
    }
}

not include subscription after remove subscription from json, it works. thanks

mrwonko added a commit to mrwonko/webpush-go that referenced this issue Nov 6, 2023
Sanity check the parsed JSON by checking for the presence of the Endpoint, and
not ignoring potential parse errors.

Log errors.

See SherClockHolmes#56 for an example of where this would have been useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant