403 Forbidden on Railway CLI
antonioc-cl
PROOP

a year ago

Railway CLI stopped working and is not allowing me to run railway up.
CLI version installed railwayapp 4.0.0

reelty-app railway whoami
Logged in as Antonio XXXXX (antonioxxxxx@gmail.com) 👋
➜ reelty-app cd reelty-font-end
➜ reelty-font-end git:(main) ru
Indexed
Compressed [====================] 100%
Failed Failed to upload code with status code 403 Forbidden
➜ reelty-font-end git:(main) railway logout
Logged out successfully
➜ reelty-font-end git:(main) railway login
Unable to parse config file, regenerating
Unable to parse config file, regenerating
> Open the browser? Yes
Logged in as Antonio XXXXX (antonioxxxxx@gmail.com)
➜ reelty-font-end git:(main) ru
No linked project found. Run railway link to connect to a project
➜ reelty-font-end git:(main) railway link
> Select a workspace Computin
> Select a project reelty
> Select an environment production
> Select a service reelty-front

Project reelty linked successfully! 🎉
➜ reelty-font-end git:(main) ru
Indexed Compressed [====================] 100% Failed Failed to upload code with status code 403 Forbidden

Any clue what might be?

12 Replies

antonioc-cl
PROOP

a year ago

0b8fb3c2-259f-43e0-aa84-b9a57a4df739


a year ago

can you run up with the verbose flag?


antonioc-cl
PROOP

a year ago

reelty-font-end git:(main) railway up --verbose
Indexed
Compressed [====================] 100% railway up
service: 48a58c82-de42-4515-8090-877f4d1f289f
environment: 405ddb50-90e5-49c4-b53f-64f0815f3ece
bytes: 2064353
url: https://backboard.railway.com/project/0b8fb3c2-259f-43e0-aa84-b9a57a4df739/environment/405ddb50-90e5-49c4-b53f-64f0815f3ece/up?serviceId=48a58c82-de42-4515-8090-877f4d1f289f
Failed Failed to upload code with status code 403 Forbidden


antonioc-cl
PROOP

a year ago

Curious that URL comes out as 'Not found'


antonioc-cl
PROOP

a year ago

any update? i just tried to logout and login, link and up with the same result: 403 forbidden


antonioc-cl
PROOP

a year ago

cat ~/.railway/config.json

{
"projects": {
"/Users/antonio/DEV/reelty-app/reelty-font-end": {
"projectPath": "/Users/antonio/DEV/reelty-app/reelty-font-end",
"name": "reelty",
"project": "0b8fb3c2-259f-43e0-aa84-b9a57a4df739",
"environment": "405ddb50-90e5-49c4-b53f-64f0815f3ece",
"environmentName": "production",
"service": "48a58c82-de42-4515-8090-877f4d1f289f"
}
},
"user": {
"token": "rw_xxxxxxc"
},
"lastUpdateCheck": "2025-03-31T15:51:13.172771Z",
"newVersionAvailable": null
}

I am trying all in my power/knowledge to debug this without luck


a year ago

have you tried to remove the config file and then re-log in


antonioc-cl
PROOP

a year ago

➜ reelty-font-end git:(main) rm -rf ~/.railway
➜ reelty-font-end git:(main) railway --version
railwayapp 4.0.0

➜ reelty-font-end git:(main) railway logout
Logged out successfully
➜ reelty-font-end git:(main) rm -rf ~/.railway
➜ reelty-font-end git:(main) railway login
> Open the browser? Yes
Logged in as Antonio xxxxxx (antonioxxxxxx@gmail.com)
➜ reelty-font-end git:(main) railway link
Failed to fetch: error decoding response body

Caused by:
0: error decoding response body
1: expected value at line 1 column 1
➜ reelty-font-end git:(main) railway link
> Select a workspace Computin
> Select a project reelty
> Select an environment production
> Select a service reelty-front

Project reelty linked successfully! 🎉
➜ reelty-font-end git:(main) railway up
Indexed
Compressed [====================] 100%
Failed Failed to upload code with status code 403 Forbidden
➜ reelty-font-end git:(main)


antonioc-cl
PROOP

a year ago

I also tried to remove everything and install:
reelty-font-end git:(main) rm -rf ~/.railway
➜ reelty-font-end git:(main) npm uninstall -g @railway/cli
up to date in 152ms
➜ reelty-font-end git:(main) npm install -g @railway/cli
added 17 packages in 5s
3 packages are looking for funding
run npm fund for details
➜ reelty-font-end git:(main) railway --version
railwayapp 4.0.0


Railway
BOT

a year ago

Hello!

We're acknowledging your issue and attaching a ticket to this thread.

We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.

Please reply to this thread if you have any questions!


a year ago

Hello,

I've ticketed this, but there is only one other report of this at the moment, so unfortunately we won't be able to prioritize looking into this at this time given we cannot reproduce this on our side.

If you have anymore information you think would be helpful or a way for us to reproduce this, that would be very much appreciated.


oceanminded28
HOBBY

8 months ago

I am having the same issue and not sure if this ticket got closed. Here is what i get and i have logged out, in and all the rest mentioned in this thread to no avail. I need this deployed and am blocked currently
❯ railway up --verbose

Indexed

Compressed [====================] 100% railway up

service: db1f3d9f-174f-4f5d-9715-b14af6a3e625

environment: 2bb46580-9c52-45de-bfdb-f19dbbb936f3

bytes: 7191711

url: https://backboard.railway.com/project/c3b0f06d-2b3c-45c6-a6d7-732e26ef6f22/environment/2bb46580-9c52-45de-bfdb-f19dbbb936f3/up?serviceId=db1f3d9f-174f-4f5d-9715-b14af6a3e625

Failed Failed to upload code with status code 403 Forbidden


Loading...