Celebrating 700K+ Installs Up to 35% OFF! View Details →

Error 413 Payload too large

Published a month ago

# SafeLine WAF
# ❓ question

Published a month ago

profile_photo

Leochan

Updated a month ago

0

Hello,
I have been using SafeLine for more than a year now and I started facing an issue with one of my apps. I'm getting an error 413 when sending a PATCH request to edit a file.
I checked the logs and it's Tangine that's sending the 413, not my backend service. See the log below

11.2.3.4 | - | 09/Oct/2026:14:04:07 +0200 | "control.domain.tld" | "PATCH /api/custom-clients/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX HTTP/1.1" | 413 | 76 | "https://control.domain.tld/static/index.html" | "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36"

I tried setting the client_max_body_size XXm; under /data/safeline/nginx/custom_params/backend_YY, checked the config syntax, it's valid, and reloading, even restarting the whole container but it's still blocking the request, I tried big body sizes as test values, but it didn't work.

What am I missing ?

profile_photo

Carrie

Updated a month ago

By default, WAF does not impose any file upload size limits.
When 413 error occurs, are there any corresponding request logs on the backend?

Also, please bypass SafeLine and test whether the request works normally.

Error 413 Payload too large | CyberServal | CyberServal