无法将消息发布到http://www.youtube.com.收件人的来历https://www.youtube.com [英] Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com

查看:60
本文介绍了无法将消息发布到http://www.youtube.com.收件人的来历https://www.youtube.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序 http://beta.billboard.fm 播放一首歌曲后,在正常的浏览会话中出现了错误./p>

如果我以隐身模式重新加载页面,则该应用程序将正常运行.我只是最近才开始遇到这些问题.我已经清除了所有缓存,并且可以再次使用,但是只是在抛出相同错误之前暂时起作用.

此外,我还禁用了所有浏览器扩展.

但是,无论如何我都无法从Youtube API抛出此错误:

无法将消息发布到 http://www.youtube.com .收件人的来源是 https://www.youtube.com

安全协议似乎不匹配.我尝试将它们更改为https或仅将"http:"全部删除.但这并不能解决问题.

有人知道这里发生了什么吗?

解决方案

在这一点上,我很清楚这是Google/YouTube API的主要错误.他们在某个地方写了一些不好的代码.此错误不是一贯的事情.每个人的代码在很长一段时间内都能正常工作,然后他们发现自己的站点突然停止正常工作,这一事实得到了很好的证明.此外,我上周遇到此问题的所有网站现在都可以正常运行-再次,无需更改代码.

所以说这句话很糟糕-责任在Google&YouTube可以解决此问题,并提供可以按广告实际运行的API ...在我看来,我们无法对自己做任何事情:(

My app at http://beta.billboard.fm is producing errors in my normal browsing session after playing a single song.

If i reload the page in incognito, the app works fully. I only recently starting experiencing these issues. I have completed cleared all of the cache and it works again, but only temporarily before throwing the same errors.

Additionally I have disable all browser extensions.

But, no matter what I do I can't get this error from being thrown by the Youtube API:

Unable to post message to http://www.youtube.com. Recipient has origin https://www.youtube.com

It looks like there is a mismatch in the security protocols. I tried changing them to https or just removing "http:" all together on my side. But it did not resolve the issue.

Any one have an idea what is happening here?

解决方案

It is quite clear to me at this point that this is a major bug in Google/YouTube's API. They have written some bad code somewhere. This bug is not a consistent thing. This is well documented by the fact that everybody's code works just fine for an extended period of time, and then they discover that all of a sudden their sites stop working properly. Additionally, all of my websites that had this problem last week are now working without a glitch - again, without me altering code.

So while it sucks to say this - the onus is on Google & YouTube to fix this and provide APIs that actually work as advertised... It doesn't look to me like there's anything we can do about it on our own :(

这篇关于无法将消息发布到http://www.youtube.com.收件人的来历https://www.youtube.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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