Youtube api (c#) 奇怪的错误 [英] Youtube api (c#) strange error

查看:31
本文介绍了Youtube api (c#) 奇怪的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经对这个问题困惑了 3 天,但我想不出任何解决方案.对不起,如果这里不是问那种问题的地方.但相信我,我没有其他选择.

I have been puzzling with this problem for 3 days now but i cant figure out any solution. Excuse me if this is no the place to ask that kind of question. But believe me i have not other alternatives.

我有一个应用程序,用户可以在其中上传视频,然后通过 youtube api 将它们上传到某个 youtube 频道.此应用程序托管在亚马逊主机中.到目前为止很棒!

I have an application where the user can upload the video and then via youtube api uploads them to a certain youtube channel. This app is hosted in an amazon host. Great so far!

由于 ssl 的原因,我必须在不同的主机上部署这个应用程序.所以我做了一个我的主机的精确实例.但问题是当我尝试通过 youtube api 上传时出现此错误:

Due to ssl reasons i have to deploy this app in a different host. So i make an exact instance of my host. But the problem is that i get this error when i try to upload via youtube api :

远程服务器返回错误:(403) Forbidden.

我所有的部署文件都是从一台主机复制粘贴到另一台主机的.主机的结构和配置完全一样(我之前提到过它是一个精确的实例).

All my deploy files are copy-paste from one host to another. The structure and configuration of the host is the exact same (as i mentioned before it is an exact instance).

如果你们中的一些人有任何想法,我将不胜感激.如果这是发布此问题的错误位置,再次抱歉.

I would be grateful if some of you had any ideas. Again sorry if this is the wrong place to post this question.

谢谢

更新

我用当前版本更新了 youtube dll,我收到了这条消息:

I updated the youtube dll's with the current version and i have this message:

无效凭据

奇怪的是,我只在特定的 youtube/google 帐户中收到此消息.在其他所有帐户中,我都尝试正确上传视频.

The weird thing is that i get this message only in a specific youtube/google account. In every other account i try the video gets uploaded correctly.

可能是账户有问题?

推荐答案

好的,我知道问题出在哪里了.

Ok i figured what the problem was about.

我尝试从亚马逊服务器手动登录 youtube,令我惊讶的是它要求输入验证码.

I tried to manually login to youtube from the amazon server and to my suprise it requested a captcha input.

进入验证码后,一切正常!

After entering the captcha, everything worked great!

这篇关于Youtube api (c#) 奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆