What's with the 400 Bad Request in YouTube?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.