Again dealing with: railway up -> Failed to upload code with status code 403 Forbidden
ben5516
PROOP

7 months ago

Please reference this issue: https://station.railway.com/questions/railway-up-suddenly-started-failing-with-30a1420a

Which I resolved by deleting some unnecessary, unused dotfiles ¯\\_(ツ)_/¯

Well, I started getting 'Failed to upload code with status code 403 Forbidden' again and wasn't able to resolve it the same way.

The railway up --verbose command doesn't tell me anything, so I added code here (https://github.com/railwayapp/cli/blob/master/src/commands/up.rs#L257) to print out the HTTP response body and ran it again.

The 403 is actually coming from Cloudflare. It's an HTML response, but I've pulled out some of the relevant text:

```
Sorry, you have been blocked

You are unable to access railway.com

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Cloudflare Ray ID: 97232bb17d0ed192
```

I think part of the issue is that railway up uses a multipart/form POST request to upload the project and Cloudflare is just having a day trying to scan for potential maliciousness. A binary upload might perform better, or trust needs to be established another way and Cloudflare removed from the railway up process. (All an outsiders perspective of course)

Please help! This continues to block me from deploying code I need to get to production.

8 Replies

Railway
BOT

7 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


ben5516
PROOP

7 months ago

Please see the Cloudflare response to this user who had a similar issue: https://community.cloudflare.com/t/waf-owasp-blocking-post-of-multipart-form-data/668147


Railway
BOT

7 months ago

Hello!

We've escalated your issue to our engineering team.

We aim to provide an update within 1 business day.

Please reply to this thread if you have any questions!

Status changed to Awaiting User Response Railway 7 months ago


Hey Ben, raised this up internally to see what might have went wrong here.


ben5516
PROOP

7 months ago

Thanks! Hopefully this is resolvable.


Status changed to Awaiting Railway Response Railway 7 months ago


We're in the guts of Cloudflare here, unfortunately, this is low priority given the number of investigations we are working through. Going to try to pick this up in a best effort.


Status changed to Awaiting User Response Railway 7 months ago


Railway
BOT

7 months ago

🛠️ The ticket Access Issue with Railway Service has been marked as todo.


6 months ago

Hi Ben,

We've loosened up some Firewall rules that should unblock you. Could you please try again and let us know if you continue to get the same issue?

Regards,

Christian


Railway
BOT

6 months ago

✅ The ticket Access Issue with Railway Service has been marked as completed.


Loading...