-
Notifications
You must be signed in to change notification settings - Fork 675
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
[BUG] edit profile picture #1456
Labels
bug
Something isn't working
Comments
Solved, it was due to instagram only allowing jpg/jpeg. Error handling should be added for this. |
@6ky can you add an exception when a non-jpeg is passed? |
in the src of instagrapi? I will have a look and let you know |
adw0rd
added a commit
that referenced
this issue
Jul 19, 2023
File Format Validation and Error Handling Enhancements Solves #1456
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
error on account change picture
To Reproduce
Provide a piece of code to reproduce the problem.
cl.account_change_picture(pathtoprofilepicture)
Traceback
Show your full traceback so that it is clear where exactly the error occurred.
Photo Upload failed with the following response: <Response [400]>
Traceback (most recent call last):
File "automate.py", line 29, in
cl.account_change_picture(pathtoprofilepicture)
File "Python38\site-packages\instagrapi\mixins\account.py", line 199, in account_change_picture
upload_id, _, _ = self.photo_rupload(Path(path))
File "\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\instagrapi\mixins\photo.py", line 190, in photo_rupload
raise PhotoNotUpload(response.text, response=response, **last_json)
instagrapi.exceptions.PhotoNotUpload: {"debug_info":{"retriable":false,"type":"ProcessingFailedError","message":"Request processing failed"}}
Expected behavior
A clear and concise description of what you expected to happen.
update pfp
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
everything latest
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: