Closed kylefoley76 closed 4 years ago
Your request is taking longer than the default timeout (60 seconds): you can pass a longer value, e.g.:
storage_client = storage.Client()
bucket_name = f'deduction4'
bucket = storage_client.get_bucket(bucket_name)
bucket.blob(f'audio/{self.file}').upload_from_string(
self.content, timeout=240
)
I'm getting this error every time for files which are really not all that big. I can upload files which are 2 megs, but I cannot upload files larger than 7 megs. I have gotten this bug a lot in the past and I used to think it depended on my slow internet connection upload speed. So in the past 3 megs per second was too slow. But now it will not even work with an upload connection speed of 10 megs. Still, I think Google should be capable of uploading large files even with a slow connection speed.
Python version: 3.8.0 Google-Cloud-Version: 1.31.0
Here is a snippet of the code I'm using. Again, this code works with small audio files.