You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
defupload_single(self, bucket, source_path, target_path):
"""Upload a single file to a bucket."""logging.info('Uploading %s', target_path)
try:
blob=bucket.blob(target_path)
blob.upload_from_filename(source_path)
exceptExceptionase:
logging.error('Failed to export: %s', e)
Stack trace
Failed to export: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Environment details
Python 3.11.4pip 23.1.2 from /usr/local/lib/python3.11/site-packages/pip (python 3.11)google-cloud-storageversion:2.14.0Steps to reproduce
Blob.upload_from_filename()seems to sometimes raise aRemoteDisconnectedexceptionpython-storage/google/cloud/storage/retry.py
Lines 28 to 38 in ae9a53b
I think this is in the same vein as #414 and #426
Code example
https://github.com/google/osv.dev/blob/b705d0d0b7450ce94137624118a2b54a7f719147/docker/exporter/exporter.py#L57-L64
Stack trace