Friday, June 1, 2012

[YouTube-API] 500 Internal Server Error On Resumable Upload YouTube API

Hello all,

I'm having some issues uploading videos using the resumable method this morning. I thought this was all working yesterday, however today the process seems to be breaking. I've included the following curls with sensitive information hidden

* About to connect() to uploads.gdata.youtube.com port 80
*   Trying 74.125.127.116... * connected
* Connected to uploads.gdata.youtube.com (74.125.127.116) port 80
> POST /resumable/feeds/api/users/default/uploads HTTP/1.1
Host: uploads.gdata.youtube.com
Accept: */*
Authorization: Bearer <access_token>
GData-Version: 2
X-GData-Key: key= <dev_key>
Content-Length: 540
Slug: 1882d829f7ed7551d9cf2a82a2dc01e6.mp4
Content-Type: application/atom+xml
X-Upload-Content-Type: video/mp4
X-Upload-Content-Length: 1204063


<?xml version="1.0"?><entry xmlns="http://www.w3.org/2005/Atom"
  xmlns:media="http://search.yahoo.com/mrss/"
  xmlns:yt="http://gdata.youtube.com/schemas/2007">
 <yt:accessControl actiuploadVideoMetaon="list" permission="denied"/>
  <media:group>
 <media:title type="plain">sdj</media:title>
 <media:description type="plain"></media:description>
 <media:category scheme="http://gdata.youtube.com/schemas/2007/categories.cat">Games</media:category>
 <media:keywords></media:keywords>
 
  </media:group>
 </entry>


< HTTP/1.1 200 OK
< Server: HTTP Upload Server Built on May 23 2012 16:01:58 (1337814118)
< Location: http://uploads.gdata.youtube.com/resumable/feeds/api/users/default/uploads?upload_id=AEnB2Uo-a_FEw0Vix8t28lvn2obqaHrSc8CejHq7wqS6jYZpOy_I3ClgRKBin2pRYLjX7y9LSqIsL20gzYFfX1XC_4N3LJb7JA
< Date: Fri, 01 Jun 2012 19:54:01 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
* Connection #0 to host uploads.gdata.youtube.com left intact
* Closing connection #0


I'm getting the url location fine, but on upload (the following curl) it throws a 500 error and i can't see what I'm missing for the life of me. 

* About to connect() to uploads.gdata.youtube.com port 80
*   Trying 74.125.127.116... * connected
* Connected to uploads.gdata.youtube.com (74.125.127.116) port 80
> PUT /resumable/feeds/api/users/default/uploads?upload_id=AEnB2Uo-a_FEw0Vix8t28lvn2obqaHrSc8CejHq7wqS6jYZpOy_I3ClgRKBin2pRYLjX7y9LSqIsL20gzYFfX1XC_4N3LJb7JA HTTP/1.1
Host: uploads.gdata.youtube.com
Accept: */*
Authorization: Bearer <access_token>
GData-Version: 2
X-GData-Key: key=<dev_key>
Content-Type: video/mp4
Content-Length: 1204063
Expect: 100-continue


< HTTP/1.1 500 Internal Server Error
< Server: HTTP Upload Server Built on May 23 2012 16:01:58 (1337814118)
< X-GData-User-Country: US
< Content-Type: application/vnd.google.gdata.error+xml
< X-GUploader-UploadID: AEnB2Uo-a_FEw0Vix8t28lvn2obqaHrSc8CejHq7wqS6jYZpOy_I3ClgRKBin2pRYLjX7y9LSqIsL20gzYFfX1XC_4N3LJb7JA
< Date: Fri, 01 Jun 2012 19:54:05 GMT
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Cache-Control: no-cache, no-store, must-revalidate
< Content-Length: 171
* Connection #0 to host uploads.gdata.youtube.com left intact
* Closing connection #0


Any help with this would be greatly appreciated... I've read in a couple places on these boards that 500 errors are usually an issue with the gdata server and not with the code I'm sending, but I can't wrap my head around why this would seemingly work the day before.

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/A3K4ylxTJA4J.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment