Can't execute any CLI command because of request error

5 months ago

I'm trying to use the Railway CLI on Windows, running everything via CMD with administrator privileges.

This is what I've done:

  1. Downloaded Node 22.12

  2. Downloaded NPM 10.9.2

  3. Ran npm i -g @railway/cli

  4. Ran railway login --browserless

That las command produces this error:

C:\Windows\system32>railway login --browserless Browserless Login Failed to fetch: error sending request for url (https://backboard.railway.com/graphql/v2) Caused by:

0: error sending request for url (https://backboard.railway.com/graphql/v2)

1: client error (Connect)

2: invalid peer certificate: UnknownIssuer

I've also tried running it without the --borwserless flag and even though the browser tabs opens saying the authentication was successfull, I still see the same error in the CMD.

My PC is running an organization-managed version of Windows 10 and I've confirmed with them that hey have not placed any restrictions on your API endpoints. Regardless, going to https://backboard.railway.com/graphql/v2 on the browser shows a YOU ARE BLOCKED error message.

Let me know of any information that might be of use.

Solved

6 Replies

5 months ago

what version of the CLI are you running ?


Status changed to Awaiting User Response Railway 5 months ago


itsrems

what version of the CLI are you running ?

5 months ago

I'm running the 3.23.0


Status changed to Awaiting Railway Response Railway 5 months ago


5 months ago

Sorry to bother, is there any news on this?


5 months ago

This would be an issue with the certificates on your system, there is no issues on our side here, this is something that would be far outside of our control, you would need to contact your system administrator for help with this.


Status changed to Awaiting User Response Railway 5 months ago


5 months ago

I've made some small progress but I'm stuck here:

C:\Windows\system32>set

<some env variables>

RAILWAY_API_TOKEN=<my token goes here>

<some more env variables>

C:\Windows\system32>railway login

Found invalid ←[1mRAILWAY_TOKEN←[0m

Unauthorized

Why is the CLI giving me this message? I can confirm the token is present in https://railway.com/account/tokens and I've even tried using a token a collegue used that worked for him but not for me. I've also tried deleting the .railway folder as suggested in some other thread but that did not work either.


Status changed to Awaiting Railway Response Railway 5 months ago


chandrika
EMPLOYEE

4 months ago

Hey Tomas, like Brody mentioned, this could be a certificate issue — could you please check with your sys admins and see if there's anything blocking there? If your collegue able to connect could you please check forums like stack overflow for differences in setting such tokens and why this might be happening?


Status changed to Awaiting User Response Railway 4 months ago


Railway
BOT

16 hours ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 16 hours ago


Can't execute any CLI command because of request error - Railway Help Station