internal networking to finish build step

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?
16 Replies
Percy
Percy3mo ago
Project ID: cef55847-90eb-44a9-9c3b-ac12a882132b
gibsfinance
gibsfinanceOP3mo ago
cef55847-90eb-44a9-9c3b-ac12a882132b 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?
Brody
Brody3mo ago
what issues are you running into?
gibsfinance
gibsfinanceOP3mo ago
i am loading a graphql schema, and am getting the following error:
Failed to load schema from http://fulfilling-joy.railway.internal:8080
Failed to load schema from http://fulfilling-joy.railway.internal:8080
http://${{random-indexer-graphql.RAILWAY_PRIVATE_DOMAIN}}:${{random-indexer-graphql.PORT}}
http://${{random-indexer-graphql.RAILWAY_PRIVATE_DOMAIN}}:${{random-indexer-graphql.PORT}}
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
Brody
Brody3mo ago
service-a can access service-b, there is just a config error somewhere on your part can you get a better error message than "Failed to load schema"
gibsfinance
gibsfinanceOP3mo 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/";
ConnectionRefused: Unable to connect. Is the computer able to access the url?

path: "http://fulfilling-joy.railway.internal:8080/";
Brody
Brody3mo ago
well thats not super helpfull is service-b listening on Ipv6?
gibsfinance
gibsfinanceOP3mo ago
trying to find the exact lines in the underlying 2 libs, but yes, it should be using ::
Brody
Brody3mo ago
are you getting that error during build or runtime?
gibsfinance
gibsfinanceOP3mo ago
runtime
Brody
Brody3mo ago
are you sure you are listening on port 8080?
gibsfinance
gibsfinanceOP3mo ago
yes
Brody
Brody3mo ago
then please confirm it is listening on ipv6, since railways private network is ipv6 only
gibsfinance
gibsfinanceOP3mo ago
No description
gibsfinance
gibsfinanceOP3mo ago
my inputs seem to be as such. how does one go about confirming? what command can i run? i see tcp6's when i run netstat my-domain.up.railway.app
Brody
Brody3mo ago
this would be something you need to confirm in your code
Want results from more Discord servers?
Add your server