We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Found while attempting to upload the generate_mock_data.py script using the requests python module in #45. See https://stackoverflow.com/questions/76647047/content-type-is-different-when-sending-file-to-fastapi-backend-using-curl-than-p. FastAPI is guessing the appropriate content type whereas requests does not. The frontend will likely guess it too, but the error should be handled more gracefully to give an appropriate error message instead. Example reproduction code:
generate_mock_data.py
requests
with open("test/files/image.jpg", mode="rb") as file: image = requests.post( f"{API_URL}/images", data={ "entity_id": "65df5ee771892ddcc08bd28f", }, files={"upload_file": file}, timeout=5, ).json()
The text was updated successfully, but these errors were encountered:
Possibly fixed by #34
Sorry, something went wrong.
No branches or pull requests
Found while attempting to upload the
generate_mock_data.py
script using therequests
python module in #45. See https://stackoverflow.com/questions/76647047/content-type-is-different-when-sending-file-to-fastapi-backend-using-curl-than-p. FastAPI is guessing the appropriate content type whereas requests does not. The frontend will likely guess it too, but the error should be handled more gracefully to give an appropriate error message instead. Example reproduction code:The text was updated successfully, but these errors were encountered: