internal networking to finish build step
gibsfinancedev
PROOP

2 years ago

hi there, i am trying to access a document hosted on one backend service by another backend service. during startup, i have backend service a reach out to backend service b and it is able to get the document. i am using the pattern: http://${{service-b.RAILWAY_PRIVATE_DOMAIN}}:${{service-b.PORT}} and service b is bound to ::8080 so i would think it should be pretty straightforward. anything i am missing here?

21 Replies

gibsfinancedev
PROOP

2 years ago

cef55847-90eb-44a9-9c3b-ac12a882132b


gibsfinancedev
PROOP

2 years ago

i should also note that this step writes files to disk to be referenced in the actual business logic. wondering if there could be something there as well?


2 years ago

what issues are you running into?


gibsfinancedev
PROOP

2 years ago

i am loading a graphql schema, and am getting the following error: ```

Failed to load schema from http://fulfilling-joy.railway.internal:8080



gibsfinancedev
PROOP

2 years ago

http://${{random-indexer-graphql.RAILWAY_PRIVATE_DOMAIN}}:${{random-indexer-graphql.PORT}}

gibsfinancedev
PROOP

2 years ago

is there something i can run to verify that service-a can access serivce b? i would think that they should be able to. i just don't know how to test it


2 years ago

service-a can access service-b, there is just a config error somewhere on your part


2 years ago

can you get a better error message than "Failed to load schema"


gibsfinancedev
PROOP

2 years ago

for now, this is all i have: ```

ConnectionRefused: Unable to connect. Is the computer able to access the url?

path: "http://fulfilling-joy.railway.internal:8080/";



2 years ago

well thats not super helpfull


2 years ago

is service-b listening on Ipv6?


gibsfinancedev
PROOP

2 years ago

trying to find the exact lines in the underlying 2 libs, but yes, it should be using ::


2 years ago

are you getting that error during build or runtime?


gibsfinancedev
PROOP

2 years ago

runtime


2 years ago

are you sure you are listening on port 8080?


gibsfinancedev
PROOP

2 years ago

yes


2 years ago

then please confirm it is listening on ipv6, since railways private network is ipv6 only


gibsfinancedev
PROOP

2 years ago

1281451110086737950


gibsfinancedev
PROOP

2 years ago

my inputs seem to be as such. how does one go about confirming? what command can i run?


gibsfinancedev
PROOP

2 years ago

i see tcp6's when i run netstat my-domain.up.railway.app


2 years ago

this would be something you need to confirm in your code


Welcome!

Sign in to your Railway account to join the conversation.

Loading...