Youtube API错误请求400

希望有人在这方面有一些经验,因为已经没有办法解决最新情况。 我的问题是,当我尝试通过api将视频上传到youtube时,为什么我收到错误请求400错误。我正在使用.net库,可以在本地成功上传但不能远程登录我的托管在discountasp。以下是我收到的错误消息,但您可以告诉它没有太多信息   远程服务器返回错误:   (400)不良请求。      [WebException:远程服务器   返回错误:(400)错误请求。]   System.Net.HttpWebRequest.GetResponse()   +6038435 Google.GData.Client.GDataRequest.Execute()   + 85      [GDataRequestException:执行   请求失败:   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类型,AsyncSendData   数据)+541   Google.GData.Client.Service.Insert(URI   feedUri,AtomEntry newEntry,   AsyncSendData数据)+88   Google.GData.Client.Service.Insert(URI   feedUri,TEntry entry)+58   Google.GData.YouTube.YouTubeService.Upload(字符串   userName,YouTubeEntry条目)+98     
已邀请:
如果没有您的代码或正在发送的请求,则无法回答,但我要检查的第一件事是: a)请求结构 - 正确的格式,参数,路径 b)您传递的参数的编码:我想这些应该是URL编码的。例如,如果您的参数包含“/”,则服务将其解释为路径分隔符。     

要回复问题请先登录注册