Skip to content

Conversation

@ekalin
Copy link
Collaborator

@ekalin ekalin commented Aug 18, 2024

Fixes #2338, and removes useless code.

The query used to obtain the rhx_gis parameter (root_rhx_gis function) does not work anymore.

The parameter was only used when obtaining a profile by its id, when not logged in. This query is working fine without the special header, so the whole functionality concerning rhx_gis was removed.

This also fixes this misleading messages logged when trying to obtain a profile anonymously:

JSON Query to : Expecting value: line 1 column 1 (char 0)

Note that this has changed the signature of the graphql_query function. I'm not sure if it's part of the public API, but it's very low level, so I changed it anyway.

  • Is it just a proof of concept? No
  • Is the documentation updated (if appropriate)? Yes
  • Do you consider it ready to be merged or is it a draft? Ready
  • Can we help you at some point? No, but feel free to make suggestions.

@aandergr aandergr linked an issue Aug 28, 2024 that may be closed by this pull request
@aandergr aandergr changed the base branch from upcoming/v4.14 to master August 28, 2024 06:21
ekalin and others added 2 commits August 28, 2024 08:22
The query used to obtain it does not work anymore.

The parameter was only used when obtaining a profile by its id, when
not logged in. This query is working fine without the special header,
so the whole functionality concerning rhx_gis was removed.

This also fixes this misleading messages logged when trying to obtain
a profile anonymously:
JSON Query to : Expecting value: line 1 column 1 (char 0)
@aandergr
Copy link
Member

Thanks!

@aandergr aandergr merged commit 3a314de into instaloader:master Aug 28, 2024
exwm pushed a commit to exwm/instaloader that referenced this pull request Aug 31, 2024
The query used to obtain it does not work anymore.

The parameter was only used when obtaining a profile by its id, when
not logged in. This query is working fine without the special header,
so the whole functionality concerning rhx_gis was removed.

This also fixes this misleading messages logged when trying to obtain
a profile anonymously:
JSON Query to : Expecting value: line 1 column 1 (char 0)
@ekalin ekalin deleted the remove-rhx-gis branch October 26, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSONDecodeError: Expecting value - Issue with Profile.from_id

2 participants