diezo / Ensta

🔥 Fast & Reliable Python Package For Instagram API - 2024
https://bit.ly/ensta-discord
MIT License
371 stars 44 forks source link

HTTP Response is not a valid JSON. #61

Closed geweb7 closed 10 months ago

geweb7 commented 10 months ago
from ensta import Guest
guest = Guest()
profile = guest.profile("leomessi")

ensta.lib.Exceptions.NetworkError: HTTP Response is not a valid JSON.

ensta: 5.0.3.9 python: 3.10.12

how do we debug to see the response?

diezo commented 10 months ago

most probably your IP is flagged. try switching to a different wifi network.

diezo commented 10 months ago

if that doesn't work either, you're left with using the host class instead, as guest doesn't always work.

geweb7 commented 10 months ago

using proxy solved the problem, thanks!

it would be nice if there is some clue to resolve in error message

diezo commented 10 months ago

glad to hear that. i'll update the error message to reflect the solution as well.

have a great day