# UnityWebRequest: HTTP/1.1 413 Request Entity Too Large

- **ID:** `unity/unitywebrequest-error-http-413`
- **Domain:** unity
- **Category:** network_error
- **Error Code:** `413`
- **Verification:** ai_generated
- **Fix Rate:** 90%

## Root Cause

The server rejected the upload or download because the payload exceeds the maximum allowed size configured on the server, often due to large asset bundles or JSON data.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| Unity 2022.3.25f1 | active | — | — |
| Unity 2023.3.0b3 | active | — | — |
| Unity 2021.3.40f1 | active | — | — |

## Workarounds

1. **Split the upload into multiple smaller chunks using a custom chunked upload implementation, or increase the server's max request size (e.g., in ASP.NET set maxRequestBodySize in web.config).** (90% success)
   ```
   Split the upload into multiple smaller chunks using a custom chunked upload implementation, or increase the server's max request size (e.g., in ASP.NET set maxRequestBodySize in web.config).
   ```
2. **Compress the payload before sending using GZip/Deflate and set Content-Encoding header. Ensure server supports decompression.** (85% success)
   ```
   Compress the payload before sending using GZip/Deflate and set Content-Encoding header. Ensure server supports decompression.
   ```

## Dead Ends

- **** — Timeout controls how long to wait for a response, not the payload size limit. (95% fail)
- **** — The 413 error is about request body size, not the HTTP method. (90% fail)
- **** — Compression affects transfer encoding, not the entity size limit. (85% fail)
