'utf-8' codec can't decode byte 0xff in position 0: invalid start byte #9500
Unanswered
lalitmahato
asked this question in
Potential Issue
Replies: 1 comment
-
I think this is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue:
When uploading data with an image, the following issue occurs if some PrimaryKeyRelatedField is missing or the field ID is not valid. If I don't upload any image file, then expected output field validation issues arise.
Encountered Issue:
If I send some missing or invalid data with image files, the following issue occurs. However, the expected result was a validation issue.
![_home_mstech_Desktop_response_response html](https://private-user-images.githubusercontent.com/52485187/358158751-743c8120-e3fb-44b0-9f44-ac8949924c66.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODM1MjUsIm5iZiI6MTczOTE4MzIyNSwicGF0aCI6Ii81MjQ4NTE4Ny8zNTgxNTg3NTEtNzQzYzgxMjAtZTNmYi00NGIwLTlmNDQtYWM4OTQ5OTI0YzY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEwMjcwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYyOTlhODE0YWNiNzJiODhjM2M0YWEwMGE5NTUwYWEzNWM5ZDE0OTJlNGM0ZDk5M2IyYTc0NGUyNWE2NTA1ZDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.zxihC0T8jv1-eQL_SHVkhm_1tERQQB8uEOUm4sF7r1k)
Validation Issue [expected output]:
The API shows the following output if I don't send any image file, which is the expected output.
My model Looks like:
Serializer looks like:
View looks like:
Beta Was this translation helpful? Give feedback.
All reactions