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

[Instagram] KeyError - 'post_date' #6091

Closed
throwaway242685 opened this issue Aug 26, 2024 · 4 comments
Closed

[Instagram] KeyError - 'post_date' #6091

throwaway242685 opened this issue Aug 26, 2024 · 4 comments

Comments

@throwaway242685
Copy link

throwaway242685 commented Aug 26, 2024

I think IG stories are broken, or something... (?)

I'm running gallery-dl with these parameters:

--mtime date
--sleep 2-10
--sleep-request 15-45
--user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0"
-C "C:\0\(IG).txt"
-c "C:\0\0.json"
-o include=stories 

but, I'm getting this error:

[instagram][error] An unexpected error occurred: KeyError - 'post_date'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .

here's the full verbose log:

←[0;37m[gallery-dl][debug] Version 1.27.4-dev←[0m
←[0;37m[gallery-dl][debug] Python 3.8.10 - Windows-7-6.1.7601-SP1←[0m
←[0;37m[gallery-dl][debug] requests 2.32.3 - urllib3 2.2.1←[0m
←[0;37m[gallery-dl][debug] Configuration Files ['C:\\0\\0.json']←[0m
←[0;37m[gallery-dl][debug] Starting DownloadJob for 'https://www.instagram.com/i
d:66315136177'←[0m
←[0;37m[instagram][debug] Using InstagramUserExtractor for 'https://www.instagra
m.com/id:66315136177'←[0m
←[0;37m[instagram][debug] Using InstagramStoriesExtractor for 'https://www.insta
gram.com/stories/id:66315136177/'←[0m
←[0;37m[instagram][debug] Loading cookies from 'C:\0\(IG).txt'←[0m
←[0;37m[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.in
stagram.com:443←[0m
←[0;37m[urllib3.connectionpool][debug] https://www.instagram.com:443 "GET /api/v
1/feed/reels_media/?reel_ids=66315136177 HTTP/1.1" 200 3389←[0m
←[1;31m[instagram][error] An unexpected error occurred: KeyError - 'post_date'.
Please run gallery-dl again with the --verbose flag, copy its output and report
this issue on https://github.com/mikf/gallery-dl/issues .←[0m
←[0;37m[instagram][debug] ←[0m
Traceback (most recent call last):
  File "C:\Users\whatever\AppData\Local\Programs\Python\Python38-32\lib\site-package
s\gallery_dl\job.py", line 151, in run
    for msg in extractor:
  File "C:\Users\whatever\AppData\Local\Programs\Python\Python38-32\lib\site-package
s\gallery_dl\extractor\instagram.py", line 76, in items
    post = self._parse_post_rest(post)
  File "C:\Users\whatever\AppData\Local\Programs\Python\Python38-32\lib\site-package
s\gallery_dl\extractor\instagram.py", line 216, in _parse_post_rest
    data["date"] = data["post_date"]
KeyError: 'post_date'
@throwaway242685
Copy link
Author

this happens with all profiles :C

@mikf
Copy link
Owner

mikf commented Aug 27, 2024

#6081 (comment)

I've made a mistake and broke stories and highlight downloads.
Revert back to the last dev build for now.

@throwaway242685
Copy link
Author

how do I revert back to that version?

i'm using gallery-dl from pip.

@mikf
Copy link
Owner

mikf commented Aug 27, 2024

For v1.27.3

pip install gallery-dl==1.27.3

For the commit before a364263

pip install --force-reinstall https://github.com/mikf/gallery-dl/archive/3bffe7a8bd8cf4434cd34153c781341dbfcbc177.zip

mikf added a commit that referenced this issue Aug 29, 2024
@mikf mikf closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants
@mikf @throwaway242685 and others