{"name":"TypeError","code":"ERR_INVALID_ARG_VALUE"} Calling API from another service in project
Hi, I'm trying to make a internal fetch API call to one of my services and it looks like it's erroring out with
{"name":"TypeError","code":"ERR_INVALID_ARG_VALUE"}
which is something I have not seen before.
Code:
This is only happening in PROD since my local env does work, I'm sure it has something to do with the BaseURL which is basically: nox.railway.internal
When checking the logs I see the first log I tested: [02:17:26.904] [info] here--url: nox.railway.internal/api/sellers/fba
and then it fails.
Am I missing something here?6 Replies
Project ID:
f78d75b5-8972-4d61-8517-22bbccefb41e
Do i need to add https:// to the beginning?
nope, that didn't work
please give this docs page a read https://docs.railway.app/guides/private-networking
Solution
I WAS MISSING THE PORT
sorry i read that page 10x but it was just the port
and i completely missed it
no worries