Stripe webhook is hitting my endpoint but refusing to log the message or execute anything, but...

mikexie360PRO

5 days ago

Server is golang, and has a stripe webhook.

I am able to test that it should log errors if I call the webhook directly through postman, but when stripe itself attempts to call my webhook, then railway will never log anything,

Railway.app logging when I hit it with postman. It fails as expected, but at leasts logs the errors on railway.

17:51:34 | 400 |      61.079µs | 100.64.0.5 | POST | /stripe/webhook | Missing Stripe-Signature

2025/05/22 17:51:54 Stripe Webhook hit

2025/05/22 17:51:54 ⚠️ Webhook signature verification failed: webhook has invalid Stripe-Signature header

17:51:54 | 400 |      62.828µs | 100.64.0.5 | POST | /stripe/webhook | Webhook signature verification failed

2025/05/22 17:55:56 Stripe Webhook hit

2025/05/22 17:55:56 ⚠️ Webhook signature verification failed: timestamp wasn't within tolerance

17:55:55 | 400 |      78.376µs | 100.64.0.3 | POST | /stripe/webhook | Webhook signature verification failed

Railway.app logging when I hit it with Stripe on test environment. it has all the correct secrets and signatures, but while it does it hit with 200 code it does not execute anything nor log anything after on railway.app.

 HTTP  5/22/2025 6:05:56 PM 100.64.0.2 POST /stripe/webhook

 HTTP  5/22/2025 6:05:56 PM 100.64.0.2 Returned 200 in 1 ms

Is something missing? why is stripe sending webhook to the railway service acting like this?

golang with fiber, and I am expecting something like "Stripe Webhook hit" similar to postman and stripe sending an api call.

Solved

0 Replies

mikexie360PRO

5 days ago

393f807e-99b3-4745-80a8-b3d2b4912559


mikexie360PRO

5 days ago

Sorry, I think I just fixed it.

I configured my stripe webhook with the incorrect endpoint.

It was hitting a different endpoint that was actually a different railway service.

I fixed this by giving the stripe webhook the correct url to the correct railway service.


5 days ago

!s


Status changed to Solved medim 5 days ago