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
Traceback (most recent call last):
File "/app/main.py", line 33, in <module>
blob_writer.write(piece)
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/cloud/storage/fileio.py", line 357, in write
self._upload_chunks_from_buffer(num_chunks)
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/cloud/storage/fileio.py", line 417, in _upload_chunks_from_buffer
upload.transmit_next_chunk(transport, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/resumable_media/requests/upload.py", line 503, in transmit_next_chunk
method, url, payload, headers = self._prepare_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/resumable_media/_upload.py", line 611, in _prepare_request
raise ValueError("Upload has finished.")
ValueError: Upload has finished.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/app/main.py", line 31, in <module>
with blob.open("wb", chunk_size=CHUNK_SIZE) as blob_writer:
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/cloud/storage/fileio.py", line 437, in close
self._upload_chunks_from_buffer(1)
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/cloud/storage/fileio.py", line 417, in _upload_chunks_from_buffer
upload.transmit_next_chunk(transport, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/resumable_media/requests/upload.py", line 503, in transmit_next_chunk
method, url, payload, headers = self._prepare_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/pythonproject-9TtSrW0h-py3.11/lib/python3.11/site-packages/google/resumable_media/_upload.py", line 611, in _prepare_request
raise ValueError("Upload has finished.")
ValueError: Upload has finished.
To Reproduce
To reproduce this error, I had to download a sample file.
Hence, I wrapped the script with docker-compose.
Hopefully, this is helpful to reproduce the issue.
Hi oittaa,
Thanks for your continue effort on this project.
Describe the bug
I wanted to try chunk a large file and then upload to the gcp-storage-emulator.
This failed with ValueError. However, the real google cloud storage works fine.
To Reproduce
To reproduce this error, I had to download a sample file.
Hence, I wrapped the script with docker-compose.
Hopefully, this is helpful to reproduce the issue.
https://github.com/devjunhong/large-file-issue
Expected behavior
It should finish uploading without an error.
System (please complete the following information)
The text was updated successfully, but these errors were encountered: