Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payload too large #366

Open
PauloMesquitaSP opened this issue May 13, 2024 · 0 comments
Open

Payload too large #366

PauloMesquitaSP opened this issue May 13, 2024 · 0 comments

Comments

@PauloMesquitaSP
Copy link

PauloMesquitaSP commented May 13, 2024

馃悰 Bug Report

I deployed this into a vps with local storage provider to test but I'm getting 413 payload too large even setting body_limit to a really high number. The documentation doesn't specify the unit measurement so I don't know if it's bytes, kb, mb.

To Reproduce

node v20.13.0
pnpm v9.1.1

Steps to reproduce the behavior:

.env:

NODE_ENV=production
PORT=4444
TURBO_TOKEN=erased
STORAGE_PROVIDER=local
BODY_LIMIT=99999999999999999999999999999999999999999999999999999999999999999999999999

I tested BODY_LIMIT with multiple values before reaching this extreme. The build folder of the app I'm trying to cache have 10,7MB.

Dockerfile command:
RUN echo "$PASS" | sudo -E -S pnpm build --filter=api...

Package.json script:
"build": "turbo run build --api=\"https://subdomain.erased.dev\" --token=\"erased\"",

Error:
WARNING failed to contact remote cache: Error making HTTP request: HTTP status client error (413 Payload Too Large) for url (https://subdomain.erased.dev/v8/artifacts/a45c1a3eaddad21e?slug=erased)

Expected behavior

I never used this before so I don't know what type of message I should receive but my expectations were to not have 413 as I grow the body limit number.

Your Environment

Machine I'm running docker: Linux Manjaro
VPS: Amazon Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant