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
in this scope JSONDecodeError = json.decoder.JSONDecodeError
but when trying to make a deliberately invalid api request (e.g. https://i.instagram.com/api/v1/track/698069981278947/info/) except JSONDecodeError don't work because raised requests.exceptions.JSONDecodeError and you get big html in terminal
possible way to solve the problem: replace json.decoder.JSONDecodeError to requests.exceptions.JSONDecodeError and you will only get something like this (this 2 lines NOT printed in terminal when used json.decoder.JSONDecodeError):
Status 404: Endpoint /v1/audio/698069981278947/info/ does not exists
404 Client Error: Not Found for url: https://i.instagram.com/api/v1/audio/698069981278947/info/
without one more exceptions and long html
did I solve the problem or long html and exceptions should have been there?
The text was updated successfully, but these errors were encountered:
In instagrapi > mixins > private.py > PrivateRequestMixin > _send_private_request have this code (line 315 for me):
in this scope
JSONDecodeError
=json.decoder.JSONDecodeError
but when trying to make a deliberately invalid api request (e.g. https://i.instagram.com/api/v1/track/698069981278947/info/)
except JSONDecodeError
don't work because raisedrequests.exceptions.JSONDecodeError
and you get big html in terminalpossible way to solve the problem: replace
json.decoder.JSONDecodeError
torequests.exceptions.JSONDecodeError
and you will only get something like this (this 2 lines NOT printed in terminal when usedjson.decoder.JSONDecodeError
):without one more exceptions and long html
did I solve the problem or long html and exceptions should have been there?
The text was updated successfully, but these errors were encountered: