Open AomTheera opened 1 year ago
i have this error and when i call this URL in postman have respond like this { 'message': 'Please wait a few minutes before you try again.', 'require_login': True, 'status': 'fail' }
but when I call it in my browser when I login ig account it work Is it possible that IG has updated the use of https://www.instagram.com/graphql/query/ and now requires logging in because the response I received contains the data "require_login: True"?
@AomTheera try instagrapi 1.18.2
File "E:\FastAPI\FastWelike\main.py", line 421, in igpostdetail raw_data = cl.media_info_gql(media_pk) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Automate\Vene\Lib\site-packages\instagrapi\mixins\media.py", line 204, in media_info_gql data = self.public_graphql_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Automate\Vene\Lib\site-packages\instagrapi\mixins\public.py", line 252, in public_graphql_request body_json = self.public_request( ^^^^^^^^^^^^^^^^^^^^ File "E:\Automate\Vene\Lib\site-packages\instagrapi\mixins\public.py", line 106, in public_request raise e # Stop retries ^^^^^^^ File "E:\Automate\Vene\Lib\site-packages\instagrapi\mixins\public.py", line 100, in public_request return self._send_public_request(url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\Automate\Vene\Lib\site-packages\instagrapi\mixins\public.py", line 201, in _send_public_request raise ClientNotFoundError(e, response=e.response) instagrapi.exceptions.ClientNotFoundError: 401 Client Error: Unauthorized for url: https://www.instagram.com/graphql/query/?variables=%7B%22shortcode%22%3A%22Cu59OMFPQde%22%2C%22child_comment_count%22%3A3%2C%22fetch_comment_count%22%3A40%2C%22parent_comment_count%22%3A24%2C%22has_threaded_comments%22%3Afalse%7D&query_hash=477b65a610463740ccdb83135b2014db