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 173 Replies
Any updates would be appreciated. Trying to rapdily iterate on something by pushing updates to a stage with railway up
I uninstalled railway via homebrew and install using npm i -g @railway/cli and am receiving the same error
Also unable to access my services in the railway ui, so i'm guessing this is a larger issue
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?
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?
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 17 months ago
hmmm
7 months ago
cat ~/.railway/config.json
can you send that here please?
7 months ago
if there is an authorisation token, please remove that lol
{
"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
7 months ago
your end
7 months ago
can you visit that site in ur browser?
7 months ago
ahh, that makes more sense 😉
7 months ago
ill leave this one to brody
7 months ago
what status code does that return?
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
7 months ago
i don't, sorry
7 months ago
you tried to have an mcp control the cli and that spammed the api
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
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
7 months ago
got you
7 months ago
i could have made it more clear that i was just randomly guessing, my bad
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
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
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.

7 months ago
Oof yeah, let me look into this.
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).
Okay, I'll try VPN and report back. Do you think it would be possible to get a whitelist by tomorrow?
7 months ago
I'm not sure when our head of operations will be back online.
vpn is working for now 🤞 … would you want me to check back tomorrow if problem persists?
7 months ago
Yes please
7 months ago
Awesome
