Thursday, July 12, 2012

[YouTube-API] Re: 400 Invalid Request when direct uploading from iOS

UPDATE: I've given up on this approach and now I'm using the GData objective c client library to manage OAuth.

On Thursday, July 12, 2012 1:55:55 PM UTC-5, zak wrote:
I'm trying to do a direct upload from my iPhone app but Youtube keep sending me back an error 400 Invalid Request. Why? Here is the response:

Response

--------

Invalid Request

, [The operation couldn’t be completed. (NSURLErrorDomain error 400.)]

2012-07-12 13:43:18.051 myApp[19078:707] __block_global_3 [Line 196] The operation couldn’t be completed. (NSURLErrorDomain error 400.)

2012-07-12 13:43:18.052 myApp[19078:707] __block_global_3 [Line 197] Error Domain=NSURLErrorDomain Code=400 "The operation couldn‚Äôt be completed. (NSURLErrorDomain error 400.)" UserInfo=0xee7de00 {Expires=Fri, 01 Jan 1990 00:00:00 GMT, Server=HTTP Upload Server Built on Jun 14 2012 02:12:09 (1339665129), Content-Type=text/html; charset=UTF-8, Content-Length=15, X-GUploader-UploadID=AEnB2UqXJeCKsfHsfpRmLbxIR1UpZ7E_GJQFhFzwrZretSu-3iFT9B1tFr-em2JlkfNZlsH72SG4UCG8gRl_lj1kit3Np5dZNw, Pragma=no-cache, Date=Thu, 12 Jul 2012 18:43:18 GMT, Cache-Control=no-cache, no-store, must-revalidate}

2012-07-12 13:43:18.055 myApp[19078:707] __block_global_3 [Line 198] Thursday, July 12, 2012 1:43:18 PM Central Daylight Time

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