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

WebhooksApi.constructEvent(...) swallows underlying exception cause #261

Open
richardstephens opened this issue Dec 13, 2024 · 0 comments
Open

Comments

@richardstephens
Copy link

richardstephens commented Dec 13, 2024

WebhooksApi.constructEvent(...)

The same exception will be thrown in the event of either a JSON processing error or an actual signature validation failure. We'd like to handle these differently but prefer not ot work out which is which by string matching.

The public SignatureException(String message, Throwable cause) constructor should be used instead, to allow us to determine the underlying exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant