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

High quality profile picture broken with new API change #306

Closed
psylenced opened this issue May 19, 2019 · 5 comments
Closed

High quality profile picture broken with new API change #306

psylenced opened this issue May 19, 2019 · 5 comments
Labels
bug Bug

Comments

@psylenced
Copy link

When running instaloader with logged in setting, there seems to be an issue getting high quality profile pictures.

This occurs on on Win10 with 4.2.7.

This is possibly due to the recent API changes.

'query_hash' Unable to fetch high quality profile pic.
'query_hash' Unable to fetch high quality profile pic.
'query_hash' Unable to fetch high quality profile pic.
@Showmaster3000
Copy link
Collaborator

I cannot confirm that. Using WIn7 with 4.2.7 since yesterday and new profile pics of checked accounts are in 1080 here.
Can you please post your commandline to reproduce your problem?

@psylenced
Copy link
Author

Hi,

Command line is following:

instaloader --no-captions --no-metadata-json --login xxxx --sessionfile session.txt --fast-update --filename-pattern="{profile}_{date}_{owner_id}-{mediaid}" +all.txt

@aandergr
Copy link
Member

I cannot confirm that neither. Could you show us an example of where this happens?

@psylenced
Copy link
Author

psylenced commented May 26, 2019

I looked back through the logs, and it appears to be related to 429 (too many requests), also possibly a false error.

[  1/250] [USER1]/[USER1]_2019-05-21_10-10-21_11111-20481111111111111111.jpg exists
JSON Query to api/v1/users/1111111/info/: 429 Too Many Requests [retrying; skip with ^C]
'query_hash' Unable to fetch high quality profile pic.

[USER2]/2014-10-30_05-26-50_UTC_profile_pic.jpg already exists
Retrieving posts from profile [USER2].
[  1/ 12] [USER2]/[USER2]_2016-07-21_06-23-55_2222-12992222222222.jpg exists
JSON Query to api/v1/users/22222222/info/: 429 Too Many Requests [retrying; skip with ^C]
'query_hash' Unable to fetch high quality profile pic.

[USER3]/2019-04-28_01-51-30_UTC_profile_pic.jpg already exists
Retrieving posts from profile [USER3].
[  1/ 97] [USER3]/[USER3]_2017-08-04_18-31-01_333333-157433333333333.jpg exists

When I run through on the individual profiles I get no error. Also they don't seem to have new profile pictures. So when I run the above 3 users it works fine.

Loaded session from session.txt.
Logged in as xxxxxx.
Downloading 3 profiles: [USER1] [USER2] [USER3]
[USER1]/2017-06-29_02-47-57_UTC_profile_pic.jpg already exists
Retrieving posts from profile [USER1].
[  1/  3] [USER1]/[USER1]_2019-02-23_22-03-35_111111-1985111111111111111.jpg exists
[USER2]/2014-10-30_05-26-50_UTC_profile_pic.jpg already exists
Retrieving posts from profile [USER2].
[  1/ 12] [USER2]/[USER2]_2016-07-21_06-23-55_222222-129922222222222222222.jpg exists
[USER3]/2019-04-28_01-51-30_UTC_profile_pic.jpg already exists
Retrieving posts from profile [USER3].
[  1/ 97] [USER3]/[USER3]_2017-08-04_18-31-01_33333-1574333333333333333.jpg exists
Saved session to session.txt.

The full list has a lot more profiles and takes a number of hours.

So at a best guess, if you get a 429 while trying to check the profile pic on this API call: api/v1/users/22222222/info/, you'll get the query_hash error.

I've only started getting the error over the last 2 weeks - so possibly the API response is slightly different too.

@aandergr aandergr added the bug Bug label May 27, 2019
@aandergr
Copy link
Member

Thanks, your complete log helped us to find and fix this bug. The fix is included in the new version 4.2.8.

wzdiyb pushed a commit to wzdiyb/instaloader that referenced this issue Feb 16, 2020
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

3 participants