Railway Cli Giving strange error whenever I try to login or view logs

dontstoplovingmebaby
PRO

3 days ago

I keep getting the same error anytime that I try to get logs for my service. I tried upgrading my cli to latest version, signing out + signing back in, and neither have worked. If you have seen this before, please let me know!

Here is the original error.

railway logs
Failed to fetch: error decoding response body

Caused by:
    0: error decoding response body
    1: expected value at line 1 column 1
which railway
/opt/homebrew/bin/railway
railway --version
railway 4.5.6

railway logout
Logged out successfully
railway login
Unable to parse config file, regenerating
Unable to parse config file, regenerating
> Open the browser? Yes
Failed to fetch: error decoding response body

Caused by:
    0: error decoding response body
    1: expected value at line 1 column 1

0 Replies

dontstoplovingmebaby
PRO

3 days ago

55631cd9-f4dc-431d-bd88-5941ef88bad8


dontstoplovingmebaby
PRO

3 days ago

I receive the same error when running railway link


dontstoplovingmebaby
PRO

3 days ago

Any updates would be appreciated. Trying to rapdily iterate on something by pushing updates to a stage with railway up


dontstoplovingmebaby
PRO

3 days ago

I uninstalled railway via homebrew and install using npm i -g @railway/cli and am receiving the same error


dontstoplovingmebaby
PRO

3 days ago

55631cd9-f4dc-431d-bd88-5941ef88bad8


dontstoplovingmebaby
PRO

3 days ago

Also unable to access my services in the railway ui, so i'm guessing this is a larger issue


dontstoplovingmebaby
PRO

3 days ago

Okay, my last message (because I am just talking with myself 🙂), but I posted an issue on GH as well. https://github.com/railwayapp/cli/issues/647


2 days ago

Can you try deleting the .railway folder that is found within your home folder?


dontstoplovingmebaby
PRO

2 days ago

I have, but will try again with a fresh install. Give me a second


2 days ago

yeah, sounds like a corrupted config file


2 days ago

what os are you on?


dontstoplovingmebaby
PRO

2 days ago

mac os Sequoia


dontstoplovingmebaby
PRO

2 days ago

image-worker % \rm -rf ~/.railway 
image-worker % which railway      
/opt/homebrew/bin/railway
image-worker % brew uninstall railway 
Uninstalling /opt/homebrew/Cellar/railway/4.5.6... (11 files, 6MB)
image-worker % which railway
railway not found
image-worker % brew install railway 
... a bunch of brew logs 
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
image-worker % which railway 
/opt/homebrew/bin/railway
image-worker % railway login
> Open the browser? Yes
Failed to fetch: error decoding response body

Caused by:
    0: error decoding response body
    1: expected value at line 1 column 1

2 days ago

hmmm


2 days ago

cat ~/.railway/config.json
can you send that here please?


dontstoplovingmebaby
PRO

2 days ago

yes


2 days ago

if there is an authorisation token, please remove that lol


dontstoplovingmebaby
PRO

2 days ago

i will ol


dontstoplovingmebaby
PRO

2 days ago

lol.


dontstoplovingmebaby
PRO

2 days ago

{
"projects": {},
"user": {
"token": "my-very-long-token"
},
"lastUpdateCheck": null,
"newVersionAvailable": null
}


2 days ago

this is macos right?


2 days ago

okay


2 days ago

this is something to do with networking


dontstoplovingmebaby
PRO

2 days ago

Interesting. Is that on my end or yours?



2 days ago

your end


2 days ago

can you visit that site in ur browser?


dontstoplovingmebaby
PRO

2 days ago

😭

1400251386020626700


dontstoplovingmebaby
PRO

2 days ago

i have done something to offend the railway gods


2 days ago

ahh, that makes more sense 😉


2 days ago

ill leave this one to brody


dontstoplovingmebaby
PRO

2 days ago

Thank you, I appreciate it!


dontstoplovingmebaby
PRO

2 days ago

@Brody please let me know if there is anything I need to do


2 days ago

what status code does that return?


dontstoplovingmebaby
PRO

2 days ago

429


2 days ago

odd that the cli is trying to decode that then, milo would you be interested in throwing in a quick fix for this, if the status code is 429, just print a simple error that says the user was rate limited


2 days ago

but as for what we can do right now, its a temporary ban so we can wait it out


dontstoplovingmebaby
PRO

2 days ago

Do you know how long the limit lasts for


2 days ago

i don't, sorry


dontstoplovingmebaby
PRO

2 days ago

Nw


dontstoplovingmebaby
PRO

2 days ago

Last question, do you have any idea as to why it would happen?


2 days ago

you tried to have an mcp control the cli and that spammed the api


dontstoplovingmebaby
PRO

2 days ago

MCP —> as in Model context protocol?

I’m not running an MCP that touched the cli.

I have been running while true ; do railway logs ; done in my terminal, could that have been itv


dontstoplovingmebaby
PRO

2 days ago

?*


dontstoplovingmebaby
PRO

2 days ago

Don’t think it would have run for more than 10 mins but could be wrong


2 days ago

it was just a wild guess haha, but a while true could do it


dontstoplovingmebaby
PRO

2 days ago

Thanks… sorry sarcasm and discord can be hard for me 🥵


dontstoplovingmebaby
PRO

2 days ago

Will wait it out


2 days ago

got you


2 days ago

i could have made it more clear that i was just randomly guessing, my bad



dontstoplovingmebaby
PRO

2 days ago

thank you


dontstoplovingmebaby
PRO

2 days ago

i'm just going to wait it out until tomorrow.. Do you guys think that's enough time for the RL to clear?


2 days ago

of course! anything else you need help with the cli?


2 days ago

yeah definetely, cloudflare ratelimits dont last that long


dontstoplovingmebaby
PRO

2 days ago

okay sick


dontstoplovingmebaby
PRO

2 days ago

I think I'm good for now.. I'll come back tomorrow if I am still being RL'd


2 days ago

yeah if by then, i can figure out how to whitelist you


dontstoplovingmebaby
PRO

2 days ago

(my boss and I) thank you


dontstoplovingmebaby
PRO

2 days ago

So sorry to drop in again @Brody, but I'm also getting RL'd on the project dashboard. My plan to get around CLI rate limiting was to push + squash commits, so I could still get my application to build. I thought maybe the RL was specific to the CLI, but I feel like it might be my user.

Is it possible you could look into a whitelist now or would you still want me to wait? I'm deep in developing a feature and there is a time sensitive nature to it.

1400273855364206600


2 days ago

Oof yeah, let me look into this.


dontstoplovingmebaby
PRO

2 days ago

thank you, really appreciate it


2 days ago

Welp, I do not have access to Cloudflare at this time, I let my invite expire.

So for an immediate resolution, use a VPN or tell your router to ask your ISP to rotate your IP (might not be possible, though).


dontstoplovingmebaby
PRO

2 days ago

Okay, I'll try VPN and report back. Do you think it would be possible to get a whitelist by tomorrow?


dontstoplovingmebaby
PRO

2 days ago

if it persists


2 days ago

I'm not sure when our head of operations will be back online.


dontstoplovingmebaby
PRO

2 days ago

okay


dontstoplovingmebaby
PRO

2 days ago

let me try the vpn


dontstoplovingmebaby
PRO

2 days ago

vpn is working for now 🤞 … would you want me to check back tomorrow if problem persists?


2 days ago

Yes please


dontstoplovingmebaby
PRO

2 days ago

@Brody It has been smooth sailing thus far today!


a day ago

Awesome


dontstoplovingmebaby
PRO

a day ago

thank ya for your help