ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.72k stars 1.47k forks source link

Connection reset error handling #437

Closed Talebano closed 6 years ago

Talebano commented 6 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


PYTHON V 3.6.3 Code: like_and_follow_media_likers.py

Error code: 2018-01-14 12:28:46,574 - WARNING - ("Connection broken: ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)", ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None)) Traceback (most recent call last): File "C:\Users*\Desktop\USB\massplanner-like\examples\.py", line 33, in bot.like_user(user, amount=3) File "C:\Program Files (x86)\Python\lib\site-packages\instabot\bot\bot.py", line 257, in like_user return like_user(self, user_id, amount) File "C:\Program Files (x86)\Python\lib\site-packages\instabot\bot\bot_like.py", line 44, in like_user medias = self.get_user_medias(user_id) File "C:\Program Files (x86)\Python\lib\site-packages\instabot\bot\bot.py", line 189, in get_user_medias return get_user_medias(self, user_id, filtration) File "C:\Program Files (x86)\Python\lib\site-packages\instabot\bot\bot_get.py", line 38, in get_user_medias return self.filter_medias(self.LastJson["items"], filtration) KeyError: 'items'

How to handle this connection reset error?

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.