internal networking to finish build step
gibsfinancedev
PROOP

a year 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

a year ago

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


gibsfinancedev
PROOP

a year 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?


a year ago

what issues are you running into?


gibsfinancedev
PROOP

a year 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

a year ago

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

gibsfinancedev
PROOP

a year 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


a year ago

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


a year ago

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


gibsfinancedev
PROOP

a year 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/";
```


a year ago

well thats not super helpfull


a year ago

is service-b listening on Ipv6?


gibsfinancedev
PROOP

a year ago

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


a year ago

are you getting that error during build or runtime?


gibsfinancedev
PROOP

a year ago

runtime


a year ago

are you sure you are listening on port 8080?


gibsfinancedev
PROOP

a year ago

yes


a year ago

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


gibsfinancedev
PROOP

a year ago

1281451110086738000


gibsfinancedev
PROOP

a year ago

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


gibsfinancedev
PROOP

a year ago

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


a year ago

this would be something you need to confirm in your code


Loading...