POST返回值:Internal Server Error
StupidOCR服务端错误如下:
Traceback (most recent call last):
File "uvicorn\protocols\http\httptools_impl.py", line 411, in run_asgi
File "uvicorn\middleware\proxy_headers.py", line 69, in __call__
File "fastapi\applications.py", line 1054, in __call__
File "starlette\applications.py", line 123, in __call__
File "starlette\middleware\errors.py", line 186, in __call__
File "starlette\middleware\errors.py", line 164, in __call__
File "starlette\middleware\cors.py", line 85, in __call__
File "starlette\middleware\exceptions.py", line 65, in __call__
File "starlette\_exception_handler.py", line 64, in wrapped_app
File "starlette\_exception_handler.py", line 53, in wrapped_app
File "starlette\routing.py", line 756, in __call__
File "starlette\routing.py", line 776, in app
File "starlette\routing.py", line 297, in handle
File "starlette\routing.py", line 77, in app
File "starlette\_exception_handler.py", line 64, in wrapped_app
File "starlette\_exception_handler.py", line 53, in wrapped_app
File "starlette\routing.py", line 72, in app
File "fastapi\routing.py", line 278, in app
File "fastapi\routing.py", line 191, in run_endpoint_function
File "StupidOCR.py", line 62, in ocr_image
File "base64.py", line 87, in b64decode
binascii.Error: Incorrect padding