Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Retry Google Drive uploads when a 500 error occurs #16

Closed
DavidBerdik opened this issue Jun 23, 2019 · 1 comment
Closed

Retry Google Drive uploads when a 500 error occurs #16

DavidBerdik opened this issue Jun 23, 2019 · 1 comment
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@DavidBerdik
Copy link
Owner

In cases where an upload fails with a 500 error, InfiniDrive crashes and the upload does not complete.

Error message from the crash:

Traceback (most recent call last):
  File "InfiniDrive.py", line 84, in <module>
    driveAPI.store_doc(driveConnect, dirId, str(docNum) + ".docx", mem_doc)
  File "/home/pi/InfiniDrive/driveAPI.py", line 63, in store_doc
    fields = 'id').execute()
  File "/home/pi/.local/lib/python3.5/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/googleapiclient/http.py", line 851, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 500 when requesting https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&alt=json&fields=id returned "Internal Error">

@DavidBerdik DavidBerdik added enhancement New feature or request bug Something isn't working labels Jun 23, 2019
@DavidBerdik DavidBerdik self-assigned this Jun 23, 2019
@DavidBerdik
Copy link
Owner Author

This issue should be fixed in 5e75389. This issue will be reopened if necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant