Trying make a connection http with two backend
alvesxy
TRIALOP

a year ago

I have two backend:

The first should only receive calls it become of the second backend.

The second backend is public and can receive calls normally, but he call for an endpoint of the first backend.

I build the URL how the docs of railway: http://python:8000/

I named python, because the other side is a Spring Boot app

When I try call this URL, my java application thrown an connection error

But, I build a public URL also to test for the first backend, and not thrown error.

What is my error to build the private URL for the first backend?

Solved

3 Replies


Status changed to Awaiting User Response Railway 11 months ago


brody

Hello,Please see our docs on this topic -https://docs.railway.com/guides/private-networking#communicating-over-the-private-network

alvesxy
TRIALOP

a year ago

Hello, brody. I saw this docs and by I understand, my URL was like that:

http://python.railway.internal:8000/

But, don't work normally. I tried remove port, use only the name of container in the dns and change to http. There is something wrong with this URL?


Status changed to Awaiting Railway Response Railway 11 months ago


brody
EMPLOYEE

a year ago

Hello,

Your URL was fine, please read that docs section.


Status changed to Awaiting User Response Railway 11 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...