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] Story downloader returns invalid media_id error #765

Closed
HellBoy-OP opened this issue Jul 12, 2022 · 5 comments
Closed

[BUG] Story downloader returns invalid media_id error #765

HellBoy-OP opened this issue Jul 12, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@HellBoy-OP
Copy link
Contributor

HellBoy-OP commented Jul 12, 2022

Describe the bug
Unable to download stories using story_download

To Reproduce

pk = cl.story_pk_from_url(url)
cl.story_download(pk, folder=dl_path)

Traceback
Invalid media_id 63355746059527093815

Expected behavior
Download the story to defined dl_path folder.

Desktop (please complete the following information):

  • OS: [Windows]
  • Python version [3.10.2]
  • instagrapi version [1.16.20]

Additional context
I have checked the url and dl_path and everything is okay. It should download the story of url to desired path but gives invalid media_id error instead.

@HellBoy-OP HellBoy-OP added the bug Something isn't working label Jul 12, 2022
@adw0rd
Copy link
Contributor

adw0rd commented Jul 13, 2022

@HellBoy-OP what was the url?

@HellBoy-OP
Copy link
Contributor Author

@HellBoy-OP what was the url?

highlight: https://www.instagram.com/s/aGlnaGxpZ2h0OjE4MDM2Mzc2MTUzMzQ1Nzky?story_media_id=2753154602009861343_48567565326&igshid=YmMyMTA2M2Y=

24 hrs story: https://instagram.com/stories/ctfu_.radhe/2881600227196194541?utm_source=ig_story_item_share&igshid=MDJmNzVkMjY=

Both returns same error.
Also I tried removing &igshid=MDJmNzVkMjY= from links, but same.

@MHCloner
Copy link

Describe the bug Unable to download stories using story_download

To Reproduce

pk = cl.story_pk_from_url(url)
cl.story_download(pk, folder=dl_path)

Traceback Invalid media_id 63355746059527093815

Expected behavior Download the story to defined dl_path folder.

Desktop (please complete the following information):

  • OS: [Windows]
  • Python version [3.10.2]
  • instagrapi version [1.16.20]

Additional context I have checked the url and dl_path and everything is okay. It should download the story of url to desired path but gives invalid media_id error instead.

i have the same problem. did u found anything bro?

@adw0rd
Copy link
Contributor

adw0rd commented Jul 18, 2022

@HellBoy-OP done instagrapi 1.16.23

@adw0rd adw0rd closed this as completed Jul 18, 2022
@411A
Copy link

411A commented Feb 26, 2024

This error is came back again: Invalid media_id (instagrapi.exceptions.ClientUnauthorizedError: 401 Client Error: Unauthorized for url:...).
I used session file with same info as my device settings on client. It only happens on stories and highlights.

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

4 participants