使用resumable-edit-media上传时出现内部服务器错误(HTTP 500)

时间:2012-04-29 06:18:02

标签: google-docs-api

我尝试使用resumable-edit-media链接更新google驱动器中的文件:

PUT /feeds/upload/create-session/default/private/full/file%3A0B5KhdsbryVeGS2pkT1JFWVYtaE0 HTTP/1.1
Host: docs.google.com
Accept: */*
Authorization: Bearer ya29.AHES6ZToaMzjaXhPejr_CM3orolU7mf2W9OknkbTYrJRx16NnmSxXg
GData-Version: 3.0
X-Upload-Content-Type: text/plain
X-Upload-Content-Length: 1000
If-Match: "WEoOEEQLBSt7ImBk"
Content-Length: 0

HTTP/1.1 200 OK
Server: HTTP Upload Server Built on Apr 23 2012 11:11:29 (1335204689)
Location: https://docs.google.com/feeds/upload/create-session/default/private/full/file%3A0B5KhdsbryVeGS2pkT1JFWVYtaE0?upload_id=AEnB2UphMFkkbKRTFSM3amKjCobgc4pZrN0asIVeEXCtYjkAj-1dnlLz3zHzXvhJoFzJEP0n7ULaboaIkzVJdmfjpXHnRI7NjQ
Date: Sun, 29 Apr 2012 15:30:56 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate
Content-Length: 0
Content-Type: text/html

到目前为止一切正常。然后我“放”到“位置:”

中的URI
PUT /feeds/upload/create-session/default/private/full/file%3A0B5KhdsbryVeGS2pkT1JFWVYtaE0?upload_id=AEnB2UphMFkkbKRTFSM3amKjCobgc4pZrN0asIVeEXCtYjkAj-1dnlLz3zHzXvhJoFzJEP0n7ULaboaIkzVJdmfjpXHnRI7NjQ HTTP/1.1
Host: docs.google.com
Content-Type: text/plain
Content-Range: bytes 0-999/1000
Content-Length: 1000

[1000 bytes of data]

HTTP/1.1 500 Internal Server Error
Server: HTTP Upload Server Built on Apr 23 2012 11:11:29 (1335204689)
Content-Type: text/html; charset=UTF-8
Date: Sun, 29 Apr 2012 15:30:56 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate
Content-Length: 14

Internal Error

谁能知道出了什么问题?

0 个答案:

没有答案