AttributeError: 'mod_wsgi.Input' object has no attribute 'tell' #123
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I'm running the below versions of httpd, mod_wsgi and latest google-cloud-storage code
I'm getting the below traceback sometimes, the issue is intermittent and that's why more confusing ( Like once in an hour ). We upgraded from python2.7 to python3.7, could this be a dependency issue ? Is so, why is it intermittent ?
[2020-03-19 07:23:01,337] [ERROR] GCPStorage: PutRequest: stest.2020-03-19/DynamicPolicyRouteChangeTest.py-stest131.sjc-16045647-403435829.log.gz. Unexpected error: (<class 'AttributeError'>) 'mod_wsgi.
Input' object has no attribute 'tell'
[2020-03-19 07:23:01,340] [ERROR] Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/LogLake/Server.py", line 477, in handlePutRequest
requestBody, requestHeaders )
File "/usr/lib/python3.7/site-packages/LogLake/Storage.py", line 79, in putObject
self.bucketName( bucketName ), objectName, content, headers )
File "/usr/lib/python3.7/site-packages/LogLake/GCPStorage.py", line 221, in doPutObject
size=fileSize, client=self.gcpStorageClient )
File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py", line 1261, in upload_from_file
client, file_obj, content_type, size, num_retries, predefined_acl
File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py", line 1171, in _do_upload
client, stream, content_type, size, num_retries, predefined_acl
File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py", line 1114, in _do_resumable_upload
predefined_acl=predefined_acl,
File "/usr/local/lib/python3.7/site-packages/google/cloud/storage/blob.py", line 1063, in _initiate_resumable_upload
stream_final=False,
File "/usr/local/lib/python3.7/site-packages/google/resumable_media/requests/upload.py", line 343, in initiate
stream_final=stream_final,
File "/usr/local/lib/python3.7/site-packages/google/resumable_media/_upload.py", line 414, in _prepare_initiate_request
if stream.tell() != 0:
AttributeError: 'mod_wsgi.Input' object has no attribute 'tell'
The text was updated successfully, but these errors were encountered: