a month ago
Hey everyone, good afternoon.
Has anyone here already integrated Mercado Pago webhooks with a Node.js/Express app hosted on Railway?
Mercado Pago needs to send a POST request to my endpoint, but Railway keeps returning a 502 error. My Express server is running with app.listen(PORT, "0.0.0.0") and the PORT environment variable is properly configured.
The /health endpoint is not responding either.
Does anyone have any idea how to make Mercado Pago webhooks work properly on Railway? I’d really appreciate any help 🙏
4 Replies
a month ago
I'd make sure that the port your URL is mapped to is the same port your API is listening to.
a month ago
Hi fellow 🇧🇷, complementing what Pepper said, I had no problems integrating Mercado Pago webhooks into my app. This appears to be more of an application issue, as all requests are not responding.
Please check this page for common issues related to your error: https://docs.railway.com/networking/troubleshooting/application-failed-to-respond.
hii mate! thanks for the answer, i'll try tomorrow cuz i alr spent the whole day trying to fix it, then i'll lyk here if i have some question :))