#Railway up errors with 413 payload too large but my project is <10MB

23 messages · Page 1 of 1 (latest)

vagrant veldt
#

According to the docs, the railway up command will fail for projects over 50MB. Indeed, after I tried to deploy with railway up I get the 413 Payload too large error. I want to manually deploy my NodeJS project but because of my node_modules being 240MB I can't. How can I deploy my project from CLI? Or do I need to push some bs commit to my repo?

edit: after some reading it seems to be that node_modules should be ignored because it is in my gitignore. That means the project's size is way below 50MB, so railway up should work but it doesn't.

coarse forgeBOT
#

Project ID: e20120c7-2ffc-4e89-a496-8f38c689560c

vagrant veldt
#

e20120c7-2ffc-4e89-a496-8f38c689560c

#

Railway up errors with 413 payload too large but my project is <10MB

sleek bone
#

are you using the correct syntax in your .gitignore file? the cli is picky

vagrant veldt
#

I guess so? It works for git.

.DS_Store
node_modules
.vscode
*.log
sleek bone
#

git is not picky

#

try node_modules/

#

with the forward slash

vagrant veldt
#

Nope, still get the error 😦

sleek bone
#

what size does properties say when you select everything but the node_modules folder?

vagrant veldt
#

2,8MB

#

If I include the .git folder it goes up to 116MB. Could that cause an issue in some way?

sleek bone
#

yeah I think, git cli won't include the .git folder but the railway cli will

#

so add that folder to the .gitignore file

vagrant veldt
#

😅 that was it indeed

sleek bone
#

I blame rust

vagrant veldt
#

The docs could use this information though! I would've never figured out that my gitignore was "wrong"

sleek bone
#

you are most certainly correct about that

#

I will see about getting the docs updated to mention that it won't ignore the .git folder, or see about getting the cli to ignore it by default, I'd prefer the latter hbu?

vagrant veldt
#

Haha yeah, definitely the latter! Thanks

sleek bone
#

no problem, glad we could get it solved