Proper Connecting String Syntax for Private Services
I must be going insane. Whats the right connection string format to connect to a private service in a Railway network? I've tried:
I am attempting to call a graphql endpoint in one Node service from another using fetch.
The service I am attempting to connect to is running on port 7653. I know this because I have it log process.env.PORT on start.
10 Replies
Project ID:
db989257-d5bb-4cba-acd6-bc0aa22606a5
db989257-d5bb-4cba-acd6-bc0aa22606a5
Public API for the service works. I can query it from Postman.
<< Hold off on responding to this just working something out >>
OK after another few hours I must be not understanding how to access services via private endpoints from within the network.
When using the service's public address I have no problems whatsoever.
After some more reading I came across this.
How would I implement this in an express application so another app can privately talk to it?
I had to do this in my Express app. And now it can accept IPv6 connections. Someone should add this to your docs. It took me hours for something really simple (beginner).
Solution
but whats not in the docs, is that you will want to set a static PORT service variable and then listen on that variable
Oh for ....
could have sworn I read that page a half dozen times
![lfg](https://cdn.discordapp.com/emojis/786867302888505364.png)
use the search bar lol
Its late..
fair enough
Thank you sir.
no problem!