Read operation timing out error with google drive api
When I am attempting to upload images to a google drive folder through my Python Flask web server using Google API, setting their permissions, and creating a spreadsheet with simple attributes that I have collected from the image, I get a read operation timed out error. It happens randomly for random images every time and for various requests from google API, most commonly when setting permissions for the image file. However, typically the permissions get set anyway regardless of whether they timed out or not. The big issue is that the program just stops for a while until it times out and then continues like normal. Here is the relevant code: