-
Hey guys, I'm currently trying to get my web application to work on production.
In my docker logs. I'm running on adapter-node and already tried out adding I cannot find anything else about this issue in the web and would be thankful if somebody can help out! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I fixed it myself. The problem was that I had to set the environment variable in the Dockerfile instead of inside the .env file:
Hope it helps if somebody is having the same struggle. |
Beta Was this translation helpful? Give feedback.
-
I'm experiencing the same issue on Render hosting. SvelteKitError: Content-length of 1956850 exceeds limit of 524288 bytes.
at Object.start (file:///opt/render/project/src/build/handler.js:993:19)
at setupReadableStreamDefaultController (node:internal/webstreams/readablestream:2464:23)
at setupReadableStreamDefaultControllerFromSource (node:internal/webstreams/readablestream:2496:3)
at new ReadableStream (node:internal/webstreams/readablestream:279:7)
at get_raw_body (file:///opt/render/project/src/build/handler.js:982:9)
at getRequest (file:///opt/render/project/src/build/handler.js:1077:7)
at Array.ssr (file:///opt/render/project/src/build/handler.js:1271:19)
at handle (file:///opt/render/project/src/build/handler.js:1341:23)
at file:///opt/render/project/src/build/handler.js:1341:40
at Array.<anonymous> (file:///opt/render/project/src/build/handler.js:1260:4) {
status: 413,
text: 'Payload Too Large' I'm thinking of compressing the image directly into the browser using Squoosh, once compressed send a lightweight image to the backend to continue the process. |
Beta Was this translation helpful? Give feedback.
I fixed it myself. The problem was that I had to set the environment variable in the Dockerfile instead of inside the .env file:
ENV BODY_SIZE_LIMIT=10M
Hope it helps if somebody is having the same struggle.