R
Railway14mo ago
R.D.

Railway Compatibility for Node.js Apps with Twilio-style API Webhooks

Hello, I have a variety of Node.js applications which manage customer calls for our small phone system using API webhook calls. The API is very similar to the Twilio API (the specific service is jambonz-node ). These apps are currently running on a Google Cloud VM without issue, but when deployed to Railway all incoming webhook calls fail. Our Twilio logs show they are failing with a status code 480 (Temporarily Unavailable). Is Railway able to host applications that provide webhooks for services similar to the Twilio API? I am new to Railway so because the env variables are input and a public domain has been generated, I am unsure as to why the API calls would be returning as unavailable. Thank you for any feedback. R.D. P.S. The project is private however I am including the Project ID since it is listed in the README rules. An example application is provided at jambonz-node-example-app. Project ID: 937b70e5-8e84-4ec4-9bf7-f9eba121c2d3
GitHub
GitHub - jambonz/jambonz-node: Node.js client SDK for jambonz
Node.js client SDK for jambonz. Contribute to jambonz/jambonz-node development by creating an account on GitHub.
Solution:
Thanks for the tip! After going back through the settings I was able to find that although our app was starting and logging, we needed a slightly different start command in the Deploy app to make our webhooks function correctly.
Jump to solution
6 Replies
Percy
Percy14mo ago
Project ID: 937b70e5-8e84-4ec4-9bf7-f9eba121c2d3
Brody
Brody14mo ago
can you provide a link to the webhook that fails with 480?
R.D.
R.D.OP14mo ago
Thanks for taking a look at my post. Here is the link: https://railway-test-production-f4f6.up.railway.app/hello-world The webhook is initiated by an incoming call.
Brody
Brody14mo ago
im getting a 500 status code, this would indicate an issue with your app, not an issue with railway, do you see any errors in your deployment logs?
Solution
R.D.
R.D.14mo ago
Thanks for the tip! After going back through the settings I was able to find that although our app was starting and logging, we needed a slightly different start command in the Deploy app to make our webhooks function correctly.
Brody
Brody14mo ago
glad you found your solution!
Want results from more Discord servers?
Add your server