Youtube API Bad Request 400
-
Hopefully someone has some experience in this area as have run out of avenues to work out whats going on. My question is why am i getting a bad request 400 error when trying to upload a video to youtube via the api. I'm using the .net library and can successfully upload locally but not remotely on my hosting at discountasp. The following is the error message i receive but as you can tell it doesn't hold much information The remote server returned an error: (400) Bad Request. [WebException: The remote server returned an error: (400) Bad Request.] System.Net.HttpWebRequest.GetResponse() +6038435 Google.GData.Client.GDataRequest.Execute() +85 [GDataRequestException: Execution of request failed: http://uploads.gdata.youtube.com/feeds/api/users/default/uploads] Google.GData.Client.GDataRequest.Execute() +228 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +487 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523 Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) +523 Google.GData.Client.GDataGAuthRequest.Execute() +10 Google.GData.Client.MediaService.EntrySend(Uri feedUri, AtomBase baseEntry, GDataRequestType type, AsyncSendData data) +541 Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry newEntry, AsyncSendData data) +88 Google.GData.Client.Service.Insert(Uri feedUri, TEntry entry) +58 Google.GData.YouTube.YouTubeService.Upload(String userName, YouTubeEntry entry) +98
-
Answer:
Without your code or the requests that are being sent this cannot be answered, but the first thing I would check is: a) The request structure - correct format, arguments, path b) Encoding of the parameters you are passing: these I imagine should be URL encoded. E.g if your parameter includes a "/" then the service with interpret this as a path delimiter.
Adam O'Brien at Stack Overflow Visit the source
Related Q & A:
- Where Can You Buy 400 Microsoft Points?Best solution by Yahoo! Answers
- How should I use Youtube API?Best solution by Stack Overflow
- How to sent GET request to external API?Best solution by stackoverflow.com
- What is the best video camera in the price range of 400-450?Best solution by Yahoo! Answers
- Does anyone know the best camcorder to get around $400?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.