subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.21k stars 667 forks source link

[BUG] HTTPError: 500 Server Error / ClientError: Unknown Server Error when i try to upload a story #902

Open AdrianoL1 opened 2 years ago

AdrianoL1 commented 2 years ago

Describe the bug When I try to upload a story using an example from documentation I get this 500 Server Error.

To Reproduce Copy the 3rd example from https://adw0rd.github.io/instagrapi/usage-guide/story.html

Traceback Traceback (most recent call last): File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\private.py", line 298, in _send_private_request
response.raise_for_status() File "C:\VS Code trabs\IGBot\venv\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://i.instagram.com/api/v1/media/configure_to_story/

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\VS Code trabs\IGBot\main.py", line 21, in cl.photo_upload_to_story( File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\photo.py", line 361, in photo_upload_to_story if self.photo_configure_to_story( File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\photo.py", line 622, in photo_configure_to_story return self.private_request("media/configure_to_story/", self.with_default_data(data)) File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\private.py", line 447, in private_request
raise e File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\private.py", line 434, in private_request
self._send_private_request(endpoint, kwargs) File "C:\VS Code trabs\IGBot\venv\lib\site-packages\instagrapi\mixins\private.py", line 374, in _send_private_request raise ClientError(e, response=e.response, last_json) instagrapi.exceptions.ClientError: Unknown Server Error.

Expected behavior Should upload the photo as a story.

Screenshots traceback image

Desktop (please complete the following information):

italianconcerto commented 1 year ago

I have the same problem.