a month ago
Hi Railway team,
My Stripe webhooks are not being routed correctly for my custom domain, cossackmuscle.com.
POST requests sent from Stripe to https://cossackmuscle.com/api/webhooks/stripe are arriving at my service at the root path /. However, GET requests to the same sub-path work correctly.
I've tried to check my domain's path forwarding settings, but as you can see in my attached screenshot, the "Edit Domain" modal does not have a "Path" configuration field.
Can you please inspect my project's ingress rules and ensure that the full request path is being preserved and forwarded to my service?
Attachments
8 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Custom Domain Failing to Respond Despite Correct Configuration
🧵 Need Assistance Setting Up a Custom Public Domain for Webhook Payloads
🧵 Custom Domain Issue – [app.atlanettrading.com](app.atlanettrading.com) Failing to Respond
If you find the answer from one of these, please let us know by solving the thread!
Railway
Hey there! We've found the following might help you get unblocked faster: - [🧵 Custom Domain Failing to Respond Despite Correct Configuration](https://station.railway.com/questions/custom-domain-failing-to-respond-despite-8eef51c4) - [🧵 Need Assistance Setting Up a Custom Public Domain for Webhook Payloads](https://station.railway.com/questions/need-assistance-setting-up-a-custom-publ-27aa9989) - [🧵 Custom Domain Issue – app.atlanettrading.com Failing to Respond](https://station.railway.com/questions/custom-domain-issue-app-atlanettrading-c65dda8a) - [📚 Public Networking](https://docs.railway.com/guides/public-networking) If you find the answer from one of these, please let us know by solving the thread!
a month ago
None of them address my specific issue, can you please look into it?
a month ago
Apologies we cannot help with this - it looks like an issue with your specific configuration instead of Railway. You may want to consider opening a public thread so the community can chime in.
Status changed to Awaiting User Response Railway • about 1 month ago
ray-chen
Apologies we cannot help with this - it looks like an issue with your specific configuration instead of Railway. You may want to consider opening a public thread so the community can chime in.
a month ago
Thank you for your reply but,
I have run a definitive test to prove the issue is with Railway's routing layer.
I deployed a minimal "path logger" service and pointed my domain cossackmuscle.com to it.
Here are the results:
GET request to
https://cossackmuscle.com/api/webhooks/stripeLog Result: Path is correctly received as
/api/webhooks/stripe.
POST request to
https://cossackmuscle.com/api/webhooks/stripeLog Result: Path is incorrectly stripped and received as
/.
This test confirms the path rewriting is happening on Railway's network before the request reaches my code. This is not a user configuration issue.
Please escalate this to your engineering team to investigate.
Thank you in advance
Status changed to Awaiting Railway Response Railway • about 1 month ago
a month ago
This is an issue with your application. We handle millions of POST requests a day without any reports of issues.
I am going to open this up to the community so they can help you debug.
Status changed to Awaiting User Response Railway • about 1 month ago
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 month ago
brody
This is an issue with your application. We handle millions of POST requests a day without any reports of issues.I am going to open this up to the community so they can help you debug.
a month ago
Thank you for the answer, I will further investigate and wait for the community responses.
cossack-coach
Thank you for the answer, I will further investigate and wait for the community responses.
a month ago
Would you mind sharing more details about your application? Framework, http client or a test repository where I can reproduce this?
a month ago
The issue has been resolved, thank you everyone!
Status changed to Solved cossack-coach • about 1 month ago
Status changed to Solved noahd • about 1 month ago