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

7 months 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

73 Replies

dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

I receive the same error when running railway link


dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months 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


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

yeah, sounds like a corrupted config file


7 months ago

what os are you on?


dontstoplovingmebaby
PROOP

7 months ago

mac os Sequoia


dontstoplovingmebaby
PROOP

7 months 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

7 months ago

hmmm


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

yes


7 months ago

if there is an authorisation token, please remove that lol


dontstoplovingmebaby
PROOP

7 months ago

i will ol


dontstoplovingmebaby
PROOP

7 months ago

lol.


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

this is macos right?


7 months ago

okay


7 months ago

this is something to do with networking


dontstoplovingmebaby
PROOP

7 months ago

Interesting. Is that on my end or yours?



7 months ago

your end


7 months ago

can you visit that site in ur browser?


dontstoplovingmebaby
PROOP

7 months ago

😭

1400251386020626700


dontstoplovingmebaby
PROOP

7 months ago

i have done something to offend the railway gods


7 months ago

ahh, that makes more sense 😉


7 months ago

ill leave this one to brody


dontstoplovingmebaby
PROOP

7 months ago

Thank you, I appreciate it!


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

what status code does that return?


dontstoplovingmebaby
PROOP

7 months ago

429


7 months 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


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

Do you know how long the limit lasts for


7 months ago

i don't, sorry


dontstoplovingmebaby
PROOP

7 months ago

Nw


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

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


dontstoplovingmebaby
PROOP

7 months 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
PROOP

7 months ago

?*


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

Will wait it out


7 months ago

got you


7 months ago

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



dontstoplovingmebaby
PROOP

7 months ago

thank you


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

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


7 months ago

yeah definetely, cloudflare ratelimits dont last that long


dontstoplovingmebaby
PROOP

7 months ago

okay sick


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

(my boss and I) thank you


dontstoplovingmebaby
PROOP

7 months 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


7 months ago

Oof yeah, let me look into this.


dontstoplovingmebaby
PROOP

7 months ago

thank you, really appreciate it


7 months 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
PROOP

7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

if it persists


7 months ago

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


dontstoplovingmebaby
PROOP

7 months ago

okay


dontstoplovingmebaby
PROOP

7 months ago

let me try the vpn


dontstoplovingmebaby
PROOP

7 months ago

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


7 months ago

Yes please


dontstoplovingmebaby
PROOP

7 months ago

@Brody It has been smooth sailing thus far today!


7 months ago

Awesome


dontstoplovingmebaby
PROOP

7 months ago

thank ya for your help


Loading...