# Onebox 错误但 OG 标签存在

**URL:** https://meta.discourse.org/t/onebox-error-but-og-tag-present/174799
**Category:** Support
**Created:** [2021年一月2日 14:41 UTC](https://meta.discourse.org/t/onebox-error-but-og-tag-present/174799 "2021-01-02T14:41:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sedget](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sedget/32/49494_2.png) [@sedget](https://meta.discourse.org/u/sedget)
#### Post date: [2021年一月2日 14:41 UTC](https://meta.discourse.org/t/onebox-error-but-og-tag-present/174799/1 "2021-01-02T14:41:21Z")

</div>

你好，  
我在将博客链接发布到 Discourse 时遇到了以下错误信息：

> 抱歉，我们无法为此网页生成预览，因为找不到以下 oEmbed / OpenGraph 标签：description、image

但这很奇怪，因为 OpenGraph 标签已经设置好了。  
例如：  
[https://gobages.com/video-peche-perches-dete](https://gobages.com/video-peche-perches-dete)

在 iframely 上检查结果也显示一切正常：

> **[Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed](https://debug.iframely.com/?uri=https%3A%2F%2Fgobages.com%2Fvideo-peche-perches-dete)**
>
> Check your URL against Open Graph, Twitter Cards, oEmbed specs. See what other apps see.

有人能帮我看看这个问题吗？是我的网站出了问题，还是 Discourse 的 onebox 构建机制有 bug？

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2021年一月3日 06:45 UTC](https://meta.discourse.org/t/onebox-error-but-og-tag-present/174799/2 "2021-01-03T06:45:22Z")

</div>

如果您指的是博客上的网页，某些博客托管平台阻止所有未知用户代理访问目标站点页面并不罕见。

如果第三方工具中的元数据检查无误，且您确认返回的 HTML 内容中包含正确的元数据，那么我猜测您的托管平台可能正在阻止未知的请求用户代理，或者根据请求头中提供的用户代理返回不同的内容。

---

<div class="post-metadata">

### Author: ![sedget](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sedget/32/49494_2.png) [@sedget](https://meta.discourse.org/u/sedget)
#### Post date: [2021年一月3日 15:16 UTC](https://meta.discourse.org/t/onebox-error-but-og-tag-present/174799/4 "2021-01-03T15:16:37Z")

</div>

谢谢您的回答，我将按此方向进行检查。
