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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request Entity Too Large in v0.5.1 #1404

Open
oleg-savko opened this issue Dec 26, 2024 · 1 comment
Open

Request Entity Too Large in v0.5.1 #1404

oleg-savko opened this issue Dec 26, 2024 · 1 comment

Comments

@oleg-savko
Copy link

In version v0.5.1 starts a problem with Request Entity Too Large on save snapshot.


File "/home/airflow/.local/lib/python3.11/site-packages/evidently/ui/managers/projects.py", line 159, in add_snapshot
    await self.project_metadata.add_snapshot(project_id, snapshot, blob)
  File "/home/airflow/.local/lib/python3.11/site-packages/evidently/ui/workspace/remote.py", line 206, in add_snapshot
    return self._request(f"/api/projects/{project_id}/snapshots", "POST", body=snapshot.dict())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/airflow/.local/lib/python3.11/site-packages/evidently/ui/workspace/remote.py", line 137, in _request
    raise EvidentlyServiceError(details)
evidently.ui.errors.EvidentlyServiceError: Request Entity Too Large

Seems it correspond to new version of litestar whitch has this new features and restrict it by default to 10Mb:
image

Workaround: need add a way to specify increase max request size (snapshots can be much more then 10mb).

@DimaAmega
Copy link
Collaborator

Hi @oleg-savko

Nice catch! Thanks for it!

Would you like to contribute 😊?

Just add request_max_body_size = None, to this file before **self.kwargs

I guess this is nice to have no limits by default in application layer (and good to have limits in other layers like proxy (nginx etc.))

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

2 participants