help with 503 error code
Hello!
I have a nest.js and postgres app on Railway
We integrated stripe to manage the payments. Every time a user buys a ticket is redirected to a stripe payment gateway (out of the website domain) On the backend we have a webhook listening for the stripe payment process to complete. We have a webhook endpoint listening but it appears the request doesn't go through while running on Railway (works fine on local though)
Question: How to get the webhook request my railway app to go through
33 Replies
Project ID:
N/A
You can use the railway provided variable
RAILWAY_STATIC_URL
in code to register your webhook endpoint.⚠️ experimental feature
where do you register this webhook?
It's an endpoint in our app.
/payments/webhook
yes but where do you tell stripe to call that endpoint?
Ah, Stripe has
https://dashboard.stripe.com/test/webhooks
. It's registered therescreenshot please
okay looks fine
now show me the bit of code that handles that endpoint
what language is that
Typescript
looks gross
...
That makes you look bad ngl
Actually works quite well look up nest.js
im not saying your code is gross
anyway
Haha it's fine
I appreciate you helping!
can you send a post request to that endpoint (while running on railway) with something like postman?
Here's the error that Stripe sees
it's railway responding
rather than my app. Which is quite odd
that is helpful
?
Can I dm you it?
why
(thanks for asking before hand though)
lmao scratch that
im not gonna reply to the dm
#🛂|readme #5
It's private information.
send it here and i will delete it after i copy it, no one here is out to get you
okay
youve wasted a lot of time btw
Why?
https://docs.railway.app/deploy/deployments#bad-gateway
503 = bad gateway
Okay Ill take a look at the link
Thanks that fixed it
see what i mean?
You're a clown
im glad i could be of assistance
(i didnt mean my time btw)
It wasn't a waste of my time ....
🤦
okay 🙂
either way, glad you got it fixed