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

Using ValidatePayload fails with payload signature check failed when executed using curl #207

Open
guillian-balisi opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels

Comments

@guillian-balisi
Copy link

Describe the bug

  • I have a webhook receiver that I am trying to test out locally
  • I have setup webhooks on buildkite and it is currently sending events. I copy the headers and payload from these events to try and test out my webhook receiver locally.
  • I try to use this library and use ValidatePayload to get the payload but it always fails with payload signature check failed

To Reproduce
Steps to reproduce the behavior:

  1. On Buildkite, create a new webhook notification
  2. Wait for Buildkite to deliver that notification, then copy the contents of the webhook's headers and payload
  3. Send that webhook with the same headers and payload using curl to your local server
  4. ValidatePayload fails with payload signature check failed when using the same token as the one shown on Buildkite

Expected behavior

ValidatePayload does not fail

Additional context

Is it expected to be able to test out this flow on a local server?

@PriyaSudip PriyaSudip self-assigned this Nov 15, 2024
@PriyaSudip
Copy link

Hey @guillian-balisi,

Thanks for raising this issue!

We're taking a look and will try to reproduce the behaviour and shall get back to you.

Cheers,
Priya

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

No branches or pull requests

2 participants