Skip to content

413 Request Entity Too Large when uploading images via Python SDK #9923

@S-kewen

Description

@S-kewen

Hi CVAT team,

I’ve deployed CVAT using Docker, and I’m trying to upload images (as a .zip archive) through the Python SDK using api_client.tasks_api.create(). However, I get the following error message:

<html>
<head><title>413 Request Entity Too Large</title></head>
<body>
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>

It looks like the request size limit is being enforced by Traefik (the Nginx gateway).
I suspect there’s a configuration issue, but I’m not sure where or how to modify the Traefik or Nginx settings in the default Docker deployment of CVAT.

Could you please advise on:

  1. Where to increase the client_max_body_size or equivalent limit in the Docker setup?

  2. Whether this should be done in the docker-compose.yml or inside a specific configuration file?

Thanks a lot for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions