instagrapi: [BUG] Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/nike/?__a=1&__d=dis) >>>
Curious if anyone else is receiving this message when making public requests, as it only begun occurring recently for me.
I’ve tested to make sure it wasn’t an issue with my code by returning to an older version of my code and the issue persisted, so I’d like to know if this has started happening recently to anyone else.
Calling:
result = cl.user_info_by_username("nike").dict()
Returns:
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/nike/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/nike/?__a=1&__d=dis) >>>
Status 201: JSONDecodeError in public_request (url=https://www.instagram.com/nike/?__a=1&__d=dis) >>>
It does return the user info after calling so it really isn’t any issue. I’d like to know if anyone could provide any insight? Thanks
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 17
- Comments: 17 (7 by maintainers)
Like to note for anyone with this issue, that as a result of this I swapped to making a private request instead for fetching user info:
user_info_dict = cl.user_info_by_username_v1(username).dict()same
Problem for me is that with the
_v1method, I get a429error every time. Not sure exactly, why (I think, I already tried waiting some time and this happens on the first request, already). But that’s what happens for me. So at the moment, this is not usable for me.https://github.com/subzeroid/instagrapi/pull/1868
Fix for user info gql
I think it’s not about your user, as I got that everytime when i do user_info on any user - get 3 information like: