You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't no more use methods like "username_from_user_id_gql" or "username_from_user_id". It seems to be a problem in the "public_graphql_request"
Traceback ("*" for privacy)
Traceback (most recent call last):
File "D:\python\*******\prova_instagrapi.py", line 1104, in <module>
usname = CL.username_from_user_id_gql("*****")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\instagrapi\mixins\user.py", line 102, in username_from_user_id_gql
return self.user_short_gql(user_id).username
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\instagrapi\mixins\user.py", line 75, in user_short_gql
data = self.public_graphql_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\andre\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\instagrapi\mixins\public.py", line 278, in public_graphql_request
return body_json["data"]
~~~~~~~~~^^^^^^^^
KeyError: 'data'
I edited public.py to write the received json from the function into a file and it looks like that:
Bug in public_graphql_request
I can't no more use methods like "
username_from_user_id_gql
" or "username_from_user_id
". It seems to be a problem in the "public_graphql_request
"Traceback ("*" for privacy)
I edited public.py to write the received json from the function into a file and it looks like that:
Screenshots

json file:
Desktop:
The text was updated successfully, but these errors were encountered: