You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I upload PNG images (via Python client or Swagger UI) I get this error:
File "/home/dmytrodronov/miniconda3/envs/ocr2/lib/python3.10/site-packages/pydantic/main.py", line 503, in model_validate
return cls.__pydantic_validator__.validate_python(
File "/home/dmytrodronov/miniconda3/envs/ocr2/lib/python3.10/site-packages/_bentoml_sdk/validators.py", line 70, in decode
return PILImage.open(obj.file, formats=formats)
File "/home/dmytrodronov/miniconda3/envs/ocr2/lib/python3.10/site-packages/PIL/Image.py", line 3309, in open
raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <tempfile.SpooledTemporaryFile object at 0x7feb53719db0>
Describe the bug
When I upload PNG images (via Python client or Swagger UI) I get this error:
To reproduce
bentoml serve example:TestService
client.py
.Image:
Expected behavior
I expect that the endpoint will work no matter what image file extension is used and that the request will end with a 200 status.
Environment
Environment variable
System information
bentoml
: 1.2.9python
: 3.10.13platform
: Linux-5.4.0-169-generic-x86_64-with-glibc2.31uid_gid
: 1003:1003conda
: 23.11.0in_conda_env
: Trueconda_packages
pip_packages
The text was updated successfully, but these errors were encountered: