I would consider that I have a pretty hefty monday.com script that is creating, moving, updating, etc. around 8k items. I occasionally run into errors indicating that my new board was not created correctly. Normally if I just run the script again, it’s fixed. I’d assume this is just due to latency. I’ve also put time.sleep()
functions throughout my script to make sure I am not hitting any limits. I’ve had a couple successful runs.
However, I recently ran into this error: :Errno 10054] An existing connection was forcibly closed by the remote host
. Through stack exchange and other community platforms, it seems that this is actually due to being connected to monday’s API for too long??? My script is taking on average about 2 hours to run. Sometimes my computer will “fall asleep”, could this be an issue?
Has anyone else come upon this error or have any suggestions?
Currently trying this method to hone down on where the error might be coming from, or if it’s consistent.
try:
r = requests.post(url=apiUrl, headers=headers, json=data, timeout=60) # make request
except:
print('Monday.com Error | location of error | Sleeping for 60 seconds')
time.sleep(60)
r = requests.post(url=apiUrl, headers=headers, json=data, timeout=60) # make request