Internal Server Error on upload
Opened this issue · 2 comments
obviousjim commented
Authorization worked fine, but my uploads are failing =(
Looks like an internal server error:
* About to connect() to uploads.gdata.youtube.com port 80 (#0)
* Trying 173.194.73.117... % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
> POST /resumable/feeds/api/users/default/uploads HTTP/1.1
Host: uploads.gdata.youtube.com
Accept: */*
Authorization: Bearer ya29.AHES6ZTf8TTXTaTAWQm7XovpFKwPh0atuljBnN7ZDbPEhoUIZs9uow
GData-Version: 2
Content-Type: application/atom+xml; charset=UTF-8
Slug: CloudsConversation.mov
Content-Length: 499
* upload completely sent off: 499 out of 499 bytes
< HTTP/1.1 500 Internal Server Error
< Server: HTTP Upload Server Built on Apr 8 2013 13:06:58 (1365451618)
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 18 Apr 2013 15:05:47 GMT
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Cache-Control: no-cache, no-store, must-revalidate
< Content-Length: 14
Returns
[error] ofxYouTubeVideoUploader::uploadVideoFile(): could not extract upload URL from server response
-----CURL RESPONSE HEADER-----
HTTP/1.1 500 Internal Server Error
Server: HTTP Upload Server Built on Apr 8 2013 13:06:58 (1365451618)
Content-Type: text/html; charset=UTF-8
6AZ75VGg
Date: Thu, 18 Apr 2013 15:05:47 GMT
Pragma: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate
Content-Length: 14
obviousjim commented
if I change the "Content-Length" to ofFile(path).getSize() it doesn't return a server error, but the CURL command never completes. I saw that you had commented out that parameter, wonder if this is going in the right direction
timscaffidi commented
Hi James, maybe it depends on the curl implementation or something, but I found that omitting the content length for an upload would be automatically calculated for me. I dont have time to look into it now, but maybe in a few weeks. Thanks for letting me know. If you get it working in a more robust way, please submit a PR. Thanks!