Google's resumable video upload status API endpoint for Google Drive is failing with HTTP 400: "Failed to parse Content-Range header."

0 views
Skip to first unread message

Rene Leistikow via StackOverflow

unread,
Mar 21, 2017, 11:30:07 PM3/21/17
to google-appengin...@googlegroups.com

In order to resume an interrupted upload to Google Drive, we have implemented status requests to Google's API following this guide. https://developers.google.com/drive/v3/web/resumable-upload#resume-upload

Request:

PUT
https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable&upload_id=UPLOAD_ID HTTP/1.1 
Content-Length: 0 
Content-Range: bytes */*

It works perfectly in most of the cases. However, the following error occurs occasionally and even retries of the same call result in the same erroneous response.

Response:

HTTP 400: "Failed to parse Content-Range header." 

We are using the google.appengine.api.urlfetch Python library to make this request in our Python App Engine backend.

Any ideas?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/42942206/googles-resumable-video-upload-status-api-endpoint-for-google-drive-is-failing
Reply all
Reply to author
Forward
0 new messages