Onebox网址 404

/onebox?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DM0ZmR6UU_8k&refresh=true
https://www.youtube.com/watch?v=M0ZmR6UU_8k

当您直接将YouTube网址插入帖子时,onebox网址将返回404错误。

我的网站似乎出现了一个问题,但不确定是什么原因。

您尝试过安全模式吗?

是的,同样的问题仍然存在。

是只有YouTube吗?还是其他的oneboxes也会出现404错误?

还有其他 oneboxes 吗?能给我一些例子吗?感谢您的回复。

所有链接都返回 404 错误。

1 个赞

代码不好。

discourse(prod)> Oneboxer.onebox('https://www.youtube.com/watch?v=0506yDSgU7M')
=> "<div class=\"youtube-onebox lazy-video-container\" data-video-id=\"0506yDSgU7M\" data-video-title=\"Linux HATES Me – Daily Driver Challenge Pt.1\" data-video-start-time=\"\" data-provider-name=\"youtube\">\n  <a href=\"https://www.youtube.com/watch?v=0506yDSgU7M\" target=\"_blank\" class=\"video-thumbnail\" rel=\"nofollow ugc noopener\">\n    <img class=\"youtube-thumbnail\" src=\"https://img.youtube.com/vi/0506yDSgU7M/maxresdefault.jpg\" title=\"Linux HATES Me – Daily Driver Challenge Pt.1\">\n  </a>\n</div>\n"
discourse(prod)> Oneboxer.preview('https://www.youtube.com/watch?v=0506yDSgU7M')
=> "<img src=\"https://img.youtube.com/vi/0506yDSgU7M/hqdefault.jpg\" width=\"480\" height=\"360\" title=\"Linux HATES Me – Daily Driver Challenge Pt.1\">\n"

我真的不知道原因了。

代理问题!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.