# Onebox 无法显示带 og 元数据的网址预览

**URL:** <https://meta.discourse.org/t/onebox-can-not-show-preview-for-url-with-og-metadatas/182594>\
**Category:** Support\
**Created:** [2021年三月9日 06:17 UTC](https://meta.discourse.org/t/onebox-can-not-show-preview-for-url-with-og-metadatas/182594 "2021-03-09T06:17:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chengwei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chengwei/32/210141_2.png) [@chengwei](https://meta.discourse.org/u/chengwei)\
**Post date:** [2021年三月9日 06:17 UTC](https://meta.discourse.org/t/onebox-can-not-show-preview-for-url-with-og-metadatas/182594/1 "2021-03-09T06:17:42Z")

</div>

你好，

我使用 discourse\_docker 成功搭建了一个 Discourse 实例，版本为 2.7.0.beta4。

我遇到了一个奇怪的问题：同一个 URL 之前能生成 Onebox 预览，但几天后却失效了。

出问题的 URL 是：[Dapr可视化指南 - InfoQ](https://www.infoq.cn/article/pckmUYf2mpc3Erg74hSU)

报错信息如下：

 ![20210309141516](https://global.discourse-cdn.com/meta/original/3X/b/5/b5a2e0168ea1b6855f87f4a2afdeca6bb2f5def7.png)

但我可以在该 URL 的元标签中找到 “og:description” 和 “og:image”。

我不太熟悉 Discourse 的代码，如有任何帮助将不胜感激，谢谢！

---

<div class="post-metadata">

**Author:** ![chengwei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chengwei/32/210141_2.png) [@chengwei](https://meta.discourse.org/u/chengwei)\
**Post date:** [2021年三月30日 13:51 UTC](https://meta.discourse.org/t/onebox-can-not-show-preview-for-url-with-og-metadatas/182594/2 "2021-03-30T13:51:41Z")

</div>

最终我发现这是环境问题：我使用了 SNAT 代理，而代理 IP 池中的某个外部 IP 被服务提供商屏蔽了。

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2021年四月29日 13:52 UTC](https://meta.discourse.org/t/onebox-can-not-show-preview-for-url-with-og-metadatas/182594/3 "2021-04-29T13:52:29Z")

</div>

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