问题描述
我已经上传到YouTube的视频与我的软件一段时间,一切都已经一年多了,现在工作的罚款。我认为东西在后台发生了变化,谷歌告诉我使用标签和我的问题在这里发布,所以在这儿呢。
I have been uploading videos to YouTube for a while with my software, and everything has been working fine for over a year now. I assume something has changed in the 'backend', and Google tells me to post here with my problems using the tag, so here it is.
这发生在我上传一段录像。该视频上传到99%,那么这个错误被抛出。 ResumeAsync()似乎不断抛出此错误。
This happens when I upload a video. The video uploads to 99%, then this error is thrown. ResumeAsync() seems to constantly throw this error.
C#侧面说明:我不知道这是否适用于其他编程语言真实,但与C#API,以便使用ResumeAsync(),您需要设置ResumableUpload对象的两个私有属性:UploadUri和StreamLength
C# Side Note: I'm not sure if this holds true for other programming languages, but with the C# API, in order to use ResumeAsync(), you need to set two PRIVATE properties of the ResumableUpload object: UploadUri and StreamLength.
我利用UploadAsync和ResumeAsync方法与按照谷歌的准则执行一个指数退避策略。
I utilize the UploadAsync and ResumeAsync methods with an 'exponential backoff strategy' implemented as per Google guidelines.
我曾尝试创建一个新的开发客户端ID,服务器ID和所有这一切,同样的结果。我也试图上传到一个不同的YouTube,相同的结果。这不是一个配额问题。我的配额是5%,除此之外,我创建了一个新的谷歌开发者的应用程序。
I have tried creating a new developer Client ID, server ID and all that, same result. I have also tried uploading to a different YouTube, same result. It's not a quota issue. My quota is at 5%, besides, I created a new Google developer app.
Google.Apis.YouTube.v3
运行时间:v4.0.30319
版本:1.12.0.461
Google.Apis.YouTube.v3Runtime: v4.0.30319Version: 1.12.0.461
错误
Google.Apis.Requests.RequestError
ErrorGoogle.Apis.Requests.RequestError
后端错误[503]
Errors [
Message[Backend Error] Location[ - ] Reason[backendError] Domain[global]
]
在System.Net.HttpStatusCode.Gone Google.Apis.Upload.ResumableUpload`1.d__91.MoveNext()在C:\Users\mdril\Documents\GitHub\google-API -dotnet-client\Src\GoogleApis\Apis [媒体] \Upload\ResumableUpload.cs:553
System.Net.HttpStatusCode.Gone at Google.Apis.Upload.ResumableUpload`1.d__91.MoveNext() in C:\Users\mdril\Documents\GitHub\google-api-dotnet-client\Src\GoogleApis\Apis[Media]\Upload\ResumableUpload.cs:line 553
修改
不久后,这些错误的出现,YouTube的电子邮件发送以下内容:
的
我猜他们是为即将开幕的要求做准备。我认为他们很快会写我们应用我们!哈哈!过多的控制权!
I guess they are preparing for these upcoming requirements. I think soon they are going to write our applications for us! haha! Too much control!
推荐答案
此的,试图在最终处理这个错误有某种形式的
的或重试。
Based from this thread, try to handle this error at your end with some form ofexponential back-off or retry.
异常
- Youtube api v3 throws an exception during upload
- https://code.google.com/p/gdata-issues/issues/detail?id=4020
这篇关于YouTube的V3 API - Google.Apis.Requests.RequestErrorBackend错误[503]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!