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
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
2 days ago
Can you try deleting the .railway folder that is found within your home folder?
2 days ago
yeah, sounds like a corrupted config file
2 days 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 1
2 days ago
hmmm
2 days ago
cat ~/.railway/config.json
can you send that here please?
2 days ago
if there is an authorisation token, please remove that lol
{
"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
2 days ago
your end
2 days ago
can you visit that site in ur browser?
2 days ago
ahh, that makes more sense 😉
2 days ago
ill leave this one to brody
2 days ago
what status code does that return?
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
2 days ago
i don't, sorry
2 days 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
2 days ago
it was just a wild guess haha, but a while true could do it
2 days ago
got you
2 days 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?
2 days ago
of course! anything else you need help with the cli?
2 days 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
2 days 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.
2 days ago
Oof yeah, let me look into this.
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).
Okay, I'll try VPN and report back. Do you think it would be possible to get a whitelist by tomorrow?
2 days 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?
2 days ago
Yes please
a day ago
Awesome