You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirmed, no existing Issues or Pull Requests found related to my submission.
Package Version
3.2.0
Are you using the latest version?
Yes, I verified the issue is still present in the latest version.
Steps to Reproduce
I'm encountering an issue where Stripe webhooks are failing in my local environment but weirdly they are working fine in production. The webhooks are forwarded through the Stripe CLI using the listen command.
🛑 I attempted to switch from Bandit to Cowboy in the phoenix adapter, but the webhook still failed with a 400 status code.
✅ I configured a standard Phoenix endpoint to handle the webhook (instead of using the Stripity Stripe plug), and in this case, the webhook was successfully received.
As weird as it sounds, this problem is not happening in my prod environment even when I'm using the same deps versions and the same stripe api version.
The text was updated successfully, but these errors were encountered:
Existing Issue or Pull Request Verification
Package Version
3.2.0
Are you using the latest version?
Steps to Reproduce
I'm encountering an issue where Stripe webhooks are failing in my local environment but weirdly they are working fine in production. The webhooks are forwarded through the Stripe CLI using the listen command.
Environment
Bandit version: 1.5.7
Phoenix version: 1.7.14
Elixir version: 1.16.1
Stripe API version: 2024-04-10
Plug Config
Handler
Stripe CLI Commad
Expected Result
I'd expect to receive the events without any trouble.
Actual Result
I get the following error:
I inspected the headers and the JSON payload of the webhook, and everything seems correct:
Here is a part of the JSON payload being sent by Stripe:
Additional Information:
🛑 I attempted to switch from Bandit to Cowboy in the phoenix adapter, but the webhook still failed with a 400 status code.
✅ I configured a standard Phoenix endpoint to handle the webhook (instead of using the Stripity Stripe plug), and in this case, the webhook was successfully received.
As weird as it sounds, this problem is not happening in my prod environment even when I'm using the same deps versions and the same stripe api version.
The text was updated successfully, but these errors were encountered: