commitd / scripts

Scripts to clone or run with npx
MIT License
0 stars 0 forks source link

Upload to sharepoint #5

Open chrisflatley opened 3 years ago

chrisflatley commented 3 years ago

What happened?

The 3Gb package fails with 429 in crafty-amulet...

Some logs:

raceback (most recent call last):
    Uploaded '1008000000' bytes from '2984138417'...[33.78%]
  File "/home/runner/.local/lib/python3.8/site-packages/office365/runtime/client_request.py", line 94, in execute_query
    Uploaded '1009000000' bytes from '2984138417'...[33.81%]
    Uploaded '1010000000' bytes from '2984138417'...[33.85%]
    Uploaded '1011000000' bytes from '2984138417'...[33.88%]
    response.raise_for_status()
    Uploaded '1012000000' bytes from '2984138417'...[33.91%]
  File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
    Uploaded '1013000000' bytes from '2984138417'...[33.95%]
    raise HTTPError(http_error_msg, response=self)
    Uploaded '1014000000' bytes from '2984138417'...[33.98%]
requests.exceptions.HTTPError: 429 Client Error:  for url: https://committedio.sharepoint.com/sites/External/_api/Web/GetFileByServerRelativeUrl('%2Fsites%2FExternal%2FShared%20Documents%2FIncoming%2F20211017181019%2Fca-deployment-2021-10-17-18-28.zip')/continueUpload(uploadID='471107df-3d50-4883-85a5-c6bea2a397c4',fileOffset=1121000000)

What did you expect to happen?

File should have uploaded.

Any relevant technical information (OS, versions, logs)?

Running in devk8s, die after exactly 1 hour though.

chrisflatley commented 3 years ago

Unclear the issue here:

Potential solutions options