How to make request using private networking?
I have two services and want to make a call from service A to service B using private networking. When I try to make a request, I get the error:
I'm using http as specified in the docs here.
My request looks like this:
The request works when I make it via public networking.
Project ID: 1031bd42-29fd-490d-aa39-3bffdaef2fb1
Solution:Jump to solution
friendly little tip, when linked to an entire docs page and not a specific section please read the entire page, but these are the sections that answer your question directly.
https://docs.railway.app/guides/private-networking#private-network-context
and the first faq
https://docs.railway.app/guides/private-networking#faq...
12 Replies
Project ID:
1031bd42-29fd-490d-aa39-3bffdaef2fb1
this page and it's faq section should answer everything you would need to know
https://docs.railway.app/guides/private-networking
I have linked this page in my question and followed the exact steps to make a query there and the server does receive it but the http request is rejected because it's not https
are you making the request from within the browser on the client side?
I am making the request in nextjs via axios
is the request made by the browser or by the backend
I don't know but I assume it's the browser
Solution
friendly little tip, when linked to an entire docs page and not a specific section please read the entire page, but these are the sections that answer your question directly.
https://docs.railway.app/guides/private-networking#private-network-context
and the first faq
https://docs.railway.app/guides/private-networking#faq
oh, I see
That does make a lot of sense now
Thank you so much!
I will remember to read everything next time, sorry
no worries, the docs are there to help you, and I'm here to fill in the gaps
Thanks so much!!
no problem!