Skip to content
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

Closed
6ky opened this issue Jul 14, 2023 · 4 comments
Closed

[BUG] edit profile picture #1456

6ky opened this issue Jul 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@6ky
Copy link
Contributor

6ky commented Jul 14, 2023

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):

  • OS: [e.g. Ubuntu 21.04]
  • Python version [e.g. 3.8.3]
  • instagrapi version [e.g. 1.9.3, not "latest"]
  • moveipy version if used
  • imagemagick version if used

everything latest

Additional context
Add any other context about the problem here.

@6ky 6ky added the bug Something isn't working label Jul 14, 2023
@6ky 6ky changed the title [BUG] [BUG] edit profile picture Jul 18, 2023
@6ky
Copy link
Contributor Author

6ky commented Jul 19, 2023

Solved, it was due to instagram only allowing jpg/jpeg. Error handling should be added for this.

@6ky 6ky closed this as completed Jul 19, 2023
@adw0rd
Copy link
Contributor

adw0rd commented Jul 19, 2023

@6ky can you add an exception when a non-jpeg is passed?

@6ky
Copy link
Contributor Author

6ky commented Jul 19, 2023

in the src of instagrapi? I will have a look and let you know

@6ky
Copy link
Contributor Author

6ky commented Jul 19, 2023

@adw0rd #1471 yw! If possible look into the enhancement I have opened.

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
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants