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

Downloading saved posts, graphql query gets redirected to homepage and fails #2238

Open
tamasv opened this issue May 2, 2024 · 0 comments
Open
Labels
bug Bug

Comments

@tamasv
Copy link

tamasv commented May 2, 2024

Describe the bug
Downloading saved posts is currently broken.
Profile.get_saved_posts() or cli :saved gets redirected to www_instagram_com ( from /graphql/query/? endpoint ) and throws a "JSON Query to graphql/query: Expecting value: line 1 column 1 (char 0)" error.

To Reproduce
Steps to reproduce the behavior:

(instadownloader-py3.12) ➜  instadownloader git:(main) ✗ instaloader --version
4.11
(instadownloader-py3.12) ➜  instadownloader git:(main) ✗ instaloader -b brave :saved
Cookies loaded successfully from brave
Query to https://www.instagram.com/graphql/query {'query_hash': 'd6f4427fbe92d846298cf93df0b937d3', 'variables': '{}'}
XXX has been successfully logged in.
Next: Run instaloader --login=XXX as it is required to download
high quality media and to make full use of instaloader's features.
Retrieving saved posts...
Query to https://www.instagram.com/graphql/query {'query_hash': 'd6f4427fbe92d846298cf93df0b937d3', 'variables': '{}'}
Query to https://www.instagram.com/graphql/query {'query_hash': 'f883d95537fbcd400f466f63d42bd8a1', 'variables': '{"id":XXX,"first":50}'}

HTTP redirect from https://www.instagram.com/graphql/query to https://www.instagram.com/
JSON Query to graphql/query: Expecting value: line 1 column 1 (char 0) [retrying; skip with ^C]
Expecting value: line 1 column 1 (char 0) (attempt 1/3) graphql/query {'query_hash': 'f883d95537fbcd400f466f63d42bd8a1', 'variables': '{"id":XXX,"first":50}'} www.instagram.com
Query to https://www.instagram.com/graphql/query {'query_hash': 'f883d95537fbcd400f466f63d42bd8a1', 'variables': '{"id":XXX,"first":50}'}

HTTP redirect from https://www.instagram.com/graphql/query to https://www.instagram.com/
JSON Query to graphql/query: Expecting value: line 1 column 1 (char 0) [retrying; skip with ^C]
Expecting value: line 1 column 1 (char 0) (attempt 2/3) graphql/query {'query_hash': 'f883d95537fbcd400f466f63d42bd8a1', 'variables': '{"id":XXX,"first":50}'} www.instagram.com
Query to https://www.instagram.com/graphql/query {'query_hash': 'f883d95537fbcd400f466f63d42bd8a1', 'variables': '{"id":XXX,"first":50}'}

HTTP redirect from https://www.instagram.com/graphql/query to https://www.instagram.com/
:saved: JSON Query to graphql/query: Expecting value: line 1 column 1 (char 0)
Saved session to /Users/vargat/.config/instaloader/session-XXX.

Errors or warnings occurred:
:saved: JSON Query to graphql/query: Expecting value: line 1 column 1 (char 0)
(instadownloader-py3.12) ➜  instadownloader git:(main) ✗

Expected behavior
When calling instaloader with :saved , it should download all saved post from the logged in user.

Error messages and tracebacks
Please see repr. steps

Instaloader version

(instadownloader-py3.12) ➜  instadownloader git:(main) ✗ instaloader --version
4.11

Additional context
Add any other context about the problem here.

@tamasv tamasv added the bug Bug label May 2, 2024
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

1 participant