Tuesday, March 20, 2012

[YouTube-API] YouTube resumable upload api issue

I am working on an application to upload videos to YouTube. I started with the .Net library; the basic upload works fine but I have problems with resuming a broken upload. The issue is the subsequent resuming http requests received "HTTP/1.1 503 Service Unavailable" from the server. Belows are the details(with the messages):

1) The request to get resumable link works fine through a POST to "http://uploads.gdata.youtube.com/resumable/feeds/api/users/default/uploads" with a location Uri returned.
2) The first upload request worked fine as well through a POST to the url returned in #1

3) I killed the connection and the app sent a second resume request with the same Url, key, etc.. However, the server returned error with status code 503.

POST http://uploads.gdata.youtube.com/resumable/feeds/api/users/default/uploads?upload_id=AEnB2UoDgvdPYg3BbNZN63BU-By_VnWkmvAuVDIMeTpxbbJFu7pTmhHbSYEwns1LDnXfUUOVtmGCVA_11aFWkjz6etq6ZjBFrQ HTTP/1.1
X-GData-Key: key=AI39si6Antx1ve8TJUE7YWw-DM-Pig74YNer7IeFLuA1HGPWvBFdb9uTuF7uGztvsLPk3VoBN7YhIy-KBrjf6blisPZZ4RpMPQ
Authorization: GoogleLogin auth=DQAAALgAAADPVOaEfLHes7cwHD-lj8TaLprjCfJ-CCWka0YLdfTqlwrCgiE5sz4sCorAaRs45k7gOAGUTPFspHd1jCq2aE48kYQkLjemgrGHr1gaS9tliULlSZjTO6mrpHCkbj5FDTyzfrkOAc5Zc4FrTfMyKdn2V2xPN3klhI9ab3uV-RLL0yN7YFdZunbuV-0PSy5slj-YZ2e-97jfs4XDKeizX0ErzhpMoTaoPNZ0TyemSlTa9W2v5AIwLHv54wiAlaWDd8A
Content-Type: video/mp4
Content-Range: bytes 0-19658547/19658548
Host: uploads.gdata.youtube.com
Content-Length: 19658548

The response:

HTTP/1.1 503 Service Unavailable
Server: HTTP Upload Server Built on Mar 15 2012 11:09:17 (1331834957)
Date: Tue, 20 Mar 2012 09:27:57 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: close

No requests would succeed anymore. 

Is it any known issue? Or how can I fix the problem? Thanks.

-Yujin 



--
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/-/XaQLHRioSXgJ.
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