Answer the question
In order to leave comments, you need to log in
Why is the bot crashing?
Every night the VK bot crashes with the error requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='lp.vk.com', port=443): Read timed out. (read timeout=35). Tried try except but didn't help. How to fix it?
Answer the question
In order to leave comments, you need to log in
there is no connection to the Internet, you need to figure out how to wait for it to appear and start the bot again.
Use a loop:
while True:
try:
vk.poling()
except:
time.sleep(60)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question