Cant login to railway cli
Getting this error in the browser for "railway login"
Error logging in to CLI. Please try again with
--browserless
When i try with browserless flag, I get a success message in the browser, but then in the console window i get "Error: No name"34 Replies
Project ID:
5f8286b9-c07d-420e-963d-0eeddef7ad22
You might find these helpful:
- Railway CLI error: "Unable to parse config file, regenerating"
- Login looping, cannot use CLI
- 🚨 Response not successful status=400
⚠️ experimental feature
5f8286b9-c07d-420e-963d-0eeddef7ad22
OS and version?
windows 11 home 64bit
or what version do you mean?
Version of the CLI, ‘railway -V’
railwayapp 3.0.13
can you try updating? current version is 3.0.22
okay, how do i update
how did you install railway
npm
then youd update railway the same as you would update any global package
okay disabling brave browser shield for railway has fixed it, i was able to login
okay but still update it
ive done that aswell
youre on 3.0.22?
yes
awsome, all good then?
ok when i logged in it said "logged in as xxxxxx"
but now did whoami
and it returned "error: no name"
is that normal?
no
you must have some kind of blocking or network issue
hmm
so i suppose the source of the problem is not in the brower since that was successful now
what would be an example of that?
delete your config.json file in $HOME./railway and then run
railway login
same situation
says it logged me in then error:no name
i just dont know then, i can say that this error is isolated to you though
its listing my projects
even though it returned no name for whoami
i guess its working?
i guess
xD
ill try if i can use the functions i need
maybe whoami isnt working for some reason
another question, can i host websocket servers on railway?
yes of course
like socket.io server
ok nice
make sure you use
wss
on the client sideokay
here's a proof of concept websockets server in case you'd need one
<wss://utilities.up.railway.app/ws>
sorry if thats a too low level question, but how would i use this link? im pretty new to websockets
you'd use it in a client like in JavaScript in the browser
just to test if stuff works, that websocket server will send the time every second
and also will echo an incoming request