Failed to POST with EOF
To start with in case it may be a version problem, I first installed the stripe-cli somewhere around March and April and used it quite extensively back then, and I haven't used it too much since june-july.
Issue
I ran the cli with the command:
stripe listen --forward-to http://localhost:8000/api/stripe-webhook
I then created a subscription in the backend, expecting the customer.subscription.created and customer.created events to fire, which they do, however, every event that fires fails with:
2022-12-01 08:29:32 --> customer.subscription.created [evt_x]
2022-12-01 08:29:32 [ERROR] Failed to POST: Post "http://localhost:8000/api/stripe-webhook": EOF
The logs in our backend don't show anything, and therefore it seems as if it doesn't reach the endpoint at all. The logs in the Stripe dev dashboard doesn't show them at all as failed.
Tested:
- Checked the webhook signing secret in backend and cli
- Changed API key in cli to a new one from the developers dashboard with all permissions "write"
- Added
--latestto the command - Forwarded to
https
Any ideas?
Expected Behavior
The webhook event should be forwarded to the correct endpoint
Steps to reproduce
- Run the listen command on Mac
Traceback
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG proxy.Proxy.processWebhookEvent: Processing webhook event webhook_converesation_id=1669875846-x webhook_id=1669875846-x
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG Setting read deadline:
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG proxy.Proxy.processWebhookEvent: Processing webhook event webhook_converesation_id=1669875846-x webhook_id=1669875846-x
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG proxy.Proxy.filterWebhookEvent: Received event with default API version, ignoring
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG websocket.Client.writePump: Sending text message
[Thu, 01 Dec 2022 08:24:06 EET] DEBUG proxy.EndpointClient.Post: Forwarding event to local endpoint
[Thu, 01 Dec 2022 08:24:06 EET]2022-12-01 08:24:06 --> invoice.payment_succeeded [evt_x]
DEBUG websocket.Client.writePump: Sending text message
2022-12-01 08:24:06 [ERROR] Failed to POST: Post "http://localhost:8000/api/stripe-webhook": EOF
Environment
macOS