Closed ItzmeSwapy closed 2 years ago
@ItzmeSwapy show your code and full traceback
for (;;);
Your response has it. So it is throwing error. Publc_request may not work all the time. You may need to have login.
try using user_info_by_username_v1(username)
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receiving
just go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None):
url = self.PUBLIC_API_URL + endpoint.lstrip("/")
if params:
params.update({"__a": 1,'__d':'dis'})
else:
params = {"__a": 1,'__d':'dis'}
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receiving
just go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
Thanks for responding, this might work
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receiving
just go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
Thanks for responding, this might work
😊
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receivingjust go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
This worked for me too. Thanks!
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receivingjust go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
This worked for me too. Thanks!
🙂🙂
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receivingjust go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
This solution has now been merged into instagrapi as of yesterday. A new issue has now popped up where user data public_email and latitiude and longitude and (possibly more) are now all returning 'None' even when they should be returning something. Issues #774 and #775 are likely related. Any ideas how this could have caused those?
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receivingjust go to line 166 in public.py and edit public_a1_request=>
def public_a1_request(self, endpoint, data=None, params=None, headers=None): url = self.PUBLIC_API_URL + endpoint.lstrip("/") if params: params.update({"__a": 1,'__d':'dis'}) else: params = {"__a": 1,'__d':'dis'}
This solution has now been merged into instagrapi as of yesterday. A new issue has now popped up where user data public_email and latitiude and longitude and (possibly more) are now all returning 'None' even when they should be returning something. Issues #774 and #775 are likely related. Any ideas how this could have caused those?
Send me some examples
bump, this is not closed or resolved.
Status 200: JSONDecodeError in public_request (url=https://www.instagram.com/myusername/?__a=1) >>> for (;;);{"__ar":1,"error":1357004,"errorSummary":"Sorry, something went wrong","errorDescription":"Please try closing and re-opening your browser window.","payload":null,"hsrp":{"hblp":{"consistency":{"rev":1005773003}}},"lid":"7114874598313241892"}
this is the error that I am receiving