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

JSON Query to graphql/query: HTTP error code 502. #31

Closed
mmathab opened this issue Aug 12, 2017 · 1 comment
Closed

JSON Query to graphql/query: HTTP error code 502. #31

mmathab opened this issue Aug 12, 2017 · 1 comment
Assignees
Labels
bug Bug

Comments

@mmathab
Copy link

mmathab commented Aug 12, 2017

Just hit that error from branch v3-dev (while doing my regular daily downloads)

[790] #starwarscosplay #starwarscosplay/its.just.a_spark_2017-08-08_17-51-47.jpg [My almost finished mando twi'…]
JSON Query to graphql/query: HTTP error code 502. [retrying]
Traceback (most recent call last):
  File "c:\python\scripts\instaloader-script.py", line 11, in <module>
    load_entry_point('instaloader==3.0rc0', 'console_scripts', 'instaloader')()
  File "c:\python\lib\site-packages\instaloader.py", line 1224, in main
    args.profile_pic_only, args.fast_update, args.stories, args.stories_only)
  File "c:\python\lib\site-packages\instaloader.py", line 1039, in main
    self.download_hashtag(hashtag=pentry[1:], max_count=max_count, fast_update=fast_update)
  File "c:\python\lib\site-packages\instaloader.py", line 852, in download_hashtag
    for post in self.get_hashtag_posts(hashtag):
  File "c:\python\lib\site-packages\instaloader.py", line 834, in get_hashtag_posts
    lambda d: d['data']['hashtag']['edge_hashtag_to_media'])
  File "c:\python\lib\site-packages\instaloader.py", line 340, in graphql_node_list
    edge_struct = edge_extractor(data)
  File "c:\python\lib\site-packages\instaloader.py", line 834, in <lambda>
    lambda d: d['data']['hashtag']['edge_hashtag_to_media'])
TypeError: 'NoneType' object is not subscriptable
@aandergr aandergr added the bug Bug label Aug 13, 2017
@aandergr aandergr assigned aandergr and unassigned aandergr Aug 13, 2017
aandergr added a commit that referenced this issue Aug 13, 2017
In GraphQL queries, this field should be set to "ok". Checking this
addresses #31 (and maybe other issues as well) and simplifies error
handling.
@aandergr aandergr self-assigned this Aug 13, 2017
@aandergr
Copy link
Member

Thanks for testing our v3-dev branch and reporting this! Commit 5732948 changes Instaloader's behavior such that this kind of error should be handled differently. Instead of failing and aborting, a error message is printed and Instaloader goes on to the next node to download.

However, I am curious which error message would occur now. I somehow feel this is related to the rate limit issues, #26 and #29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants