Unable to call service using internal name within a project

le5668
PRO

7 months ago

Hi Railway team,

Please help me understand why I cannot call my backend service using the internal name. It works fine if I call using the external name.

Here is the error I get when I use the internal name. I double-checked the port and everything and tried multiple combinations of names.

Also, my backend service is python+flask based. Not sure if I need to do something.

Error fetching ticker information: FetchError: request to http://XYZ.internal:8080/api failed, reason: connect ECONNREFUSED fd12:910d:d291:0:2000:2b:32c6:7241:8080

Feb 02 02:23:43

at ClientRequest.<anonymous> (file:///app/node_modules/node-fetch/src/index.js:108:11)

Feb 02 02:23:43

at ClientRequest.emit (node:events:518:28)

Solved

6 Replies

7 months 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 7 months ago


7 months ago


le5668
PRO

7 months ago

Thanks, but I'm not sure what to do or what I am missing.

Also, please give me a heads-up before marking the thread public; I haven't been ready to share the app name and all the details with the public yet.
Is there a way I can get support on a 1-1 basis? I am ready to pay for that.


7 months ago

> Thanks, but I'm not sure what to do or what I am missing.

You mentioned your backend is flask, so please see the section about gunicorn -

https://docs.railway.com/guides/private-networking#python--gunicorn

> please give me a heads-up before marking the thread public; I haven't been ready to share the app name and all the details with the public yet.

Private threads for Hobby users are to share sensitive information such as billing topics, private domains don't expose any sensitive information.

> Is there a way I can get support on a 1-1 basis? I am ready to pay for that.

Private threads for non-private matters would be limited to the Pro plan, then you are free to create private threads here, or talk to us privately on slack, see more information on how we do support here -

https://docs.railway.com/reference/support

Best,
Brody


brody

> Thanks, but I'm not sure what to do or what I am missing.You mentioned your backend is flask, so please see the section about gunicorn -https://docs.railway.com/guides/private-networking#python--gunicorn> please give me a heads-up before marking the thread public; I haven't been ready to share the app name and all the details with the public yet.Private threads for Hobby users are to share sensitive information such as billing topics, private domains don't expose any sensitive information.> Is there a way I can get support on a 1-1 basis? I am ready to pay for that.Private threads for non-private matters would be limited to the Pro plan, then you are free to create private threads here, or talk to us privately on slack, see more information on how we do support here -https://docs.railway.com/reference/supportBest,Brody

le5668
PRO

7 months ago

Thanks, I will sign up for Pro/Business plan after done evaluating this platform


le5668
PRO

7 months ago

Thanks, this helped


7 months ago

Awsome!


Status changed to Solved brody 7 months ago


Unable to call service using internal name within a project - Railway Help Station