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

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

问题描述

我在 http://beta.billboard.fm 上的应用在播放一首歌曲后在正常浏览会话中产生错误.

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.

但是,无论我做什么,我都无法从 Youtube API 抛出这个错误:

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

无法向 http://www.youtube.com 发布消息.收件人来源 https://www.youtube.com

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

看起来安全协议不匹配.我尝试将它们更改为 https 或只是删除http:"在我身边.但这并没有解决问题.

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?

推荐答案

目前我很清楚这是 Google/YouTube 的 API 中的一个主要错误.他们在某处写了一些糟糕的代码.这个错误不是一致的.这是有据可查的事实,即每个人的代码在很长一段时间内都可以正常工作,然后他们发现他们的站点突然停止正常工作.此外,我上周遇到此问题的所有网站现在都可以正常运行 - 同样,我无需更改代码.

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.

所以虽然说这个很糟糕 - 责任在于谷歌 &YouTube 来解决这个问题并提供真正像宣传的那样工作的 API ......在我看来,我们自己无法做任何事情:(

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天全站免登陆