# Onebox does not work when summary opengraph tag is not present?

**URL:** https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953
**Category:** Support
**Created:** [May 2, 2017, 11:37am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953 "2017-05-02T11:37:54Z")
**Posts on this page:** 16
**Page:** 2

<div class="post-metadata">

### Author: ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)
#### Post date: [June 12, 2017, 3:05pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/21 "2017-06-12T15:05:13Z")

</div>

> [@eviltrout](#):
>
> Did you make any changes to the post when you edited it?

Yes, I did pretty heavy changes (since this was just a test post, it was not a problem. I added text, I deleted text, I added other links (which oneboxed just fine)…

What if these edits happen within the 5 minute grace period, though?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 12, 2017, 3:07pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/22 "2017-06-12T15:07:48Z")

</div>

That should be OK then. I will confirm about the invalidation of the onebox today. Maybe I’m mistaken about it being updated on save.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 12, 2017, 6:06pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/24 "2017-06-12T18:06:50Z")

</div>

I was able to reproduce this. At some point the behavior regressed. With this commit, if you edit a post that contains a onebox it’ll force it to refresh via the preview. Locally it seems to work for me!

[https://github.com/discourse/discourse/commit/2ff850d4465fdb11f61110d70cd25c5b39defefd](https://github.com/discourse/discourse/commit/2ff850d4465fdb11f61110d70cd25c5b39defefd)

---

<div class="post-metadata">

### Author: ![ivan\_holiakov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_holiakov/32/73579_2.png) [@ivan\_holiakov](https://meta.discourse.org/u/ivan_holiakov)
#### Post date: [June 14, 2017, 5:30pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/25 "2017-06-14T17:30:37Z")

</div>

Sorry for jumping into this discussion just like that, but seems like I am experiencing almost the same problem but with Medium blog posts.

This [medium post](https://medium.com/@bonatsos/dont-believe-your-own-hype-3ee385b22b3) and this [corporate medium blog post](https://themission.co/stop-nobody-is-going-to-be-your-mentor-6a14d5aa2a13) using the same open graph tags but off course with different content and on different domains. Why in one case Onebox works perfectly and in another doesn’t?

Thanks!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 14, 2017, 8:54pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/26 "2017-06-14T20:54:12Z")

</div>

Can you reproduce the issue on [https://try.discourse.org](https://try.discourse.org) ?

---

<div class="post-metadata">

### Author: ![ivan\_holiakov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_holiakov/32/73579_2.png) [@ivan\_holiakov](https://meta.discourse.org/u/ivan_holiakov)
#### Post date: [June 14, 2017, 9:52pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/27 "2017-06-14T21:52:54Z")

</div>

Absolutely same experience: (

 ![](https://global.discourse-cdn.com/meta/original/3X/b/a/ba1ed272416cb22a7950e60b103b6ea7a20e06e7.gif)

---

<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: [June 14, 2017, 11:18pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/28 "2017-06-14T23:18:48Z")

</div>

That one is odd, I checked `iframely.com/debug` and I don’t see anything obviously different about the 2nd link that would make it not work @eviltrout. Warrants a closer look.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 15, 2017, 7:12pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/30 "2017-06-15T19:12:12Z")

</div>

This is a strange error. The Medium site is returning status [code 409](https://httpstatuses.com/409) when you make a HEAD request which indicates a conflict.

I added 409 to our list of “try again with GET” codes and it’s now working. I’m not sure why they’d consider a HEAD call a conflict but this does seem to fix it:

[https://github.com/discourse/discourse/commit/7366f334b04aa65065f835ecad137853fa94387f](https://github.com/discourse/discourse/commit/7366f334b04aa65065f835ecad137853fa94387f)

---

<div class="post-metadata">

### Author: ![ivan\_holiakov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_holiakov/32/73579_2.png) [@ivan\_holiakov](https://meta.discourse.org/u/ivan_holiakov)
#### Post date: [June 17, 2017, 11:49am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/31 "2017-06-17T11:49:23Z")

</div>

Wow, that was fast 🙂  
Sorry for asking a possibly stupid question but how do I now apply this change to my community website?

---

<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: [June 17, 2017, 4:54pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/32 "2017-06-17T16:54:21Z")

</div>

Update via the web updater or at the command line.

---

<div class="post-metadata">

### Author: ![ivan\_holiakov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_holiakov/32/73579_2.png) [@ivan\_holiakov](https://meta.discourse.org/u/ivan_holiakov)
#### Post date: [June 18, 2017, 12:33am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/33 "2017-06-18T00:33:15Z")

</div>

> [@ivan\_holiakov](#):
>
> corporate medium blog post

So I did the update through the command line, to double-check did `git pull` command once more and got `Already up to date` response, so I should be fine. Cleaned all cache and tried to post the same link from the Medium site. Got same negative result with onebox.

@eviltrout what do you think about that?

---

<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: [June 18, 2017, 12:34am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/34 "2017-06-18T00:34:33Z")

</div>

Let’s see

[https://themission.co/stop-nobody-is-going-to-be-your-mentor-6a14d5aa2a13](https://themission.co/stop-nobody-is-going-to-be-your-mentor-6a14d5aa2a13)

Doesn’t seem to work here either.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [June 19, 2017, 7:05pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/36 "2017-06-19T19:05:10Z")

</div>

Huh there’s something really weird about that redirect that I can’t figure out.

When you request the first URL, it redirects twice, setting a cookie. I am following this procedure, and it ends up with a 200. I pass that cookie and final destination to onebox, but it wants to do the whole redirection thing again! This causes it to fail because we ask the onebox to use the final url.

I’ve spent a couple of hours on this and I have no idea why it wants to do the redirect again. I’m wondering if they have some kind of fingerprinting in place to prevent you from passing cookie’d URLs around to different clients?

I’ve never seen it before so I am quite confused.

---

<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: [June 19, 2017, 8:05pm UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/37 "2017-06-19T20:05:15Z")

</div>

I definitely don’t want to spend any more time on this, so that URL can be unknown onebox behavior at this time. Sounds like the redirects are required, somehow..

---

<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: [June 20, 2019, 2:16am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/38 "2019-06-20T02:16:25Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 25, 2019, 12:49am UTC](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953/39 "2019-06-25T00:49:35Z")

</div>



[Previous page](https://meta.discourse.org/t/onebox-does-not-work-when-summary-opengraph-tag-is-not-present/61953.md?page=1)
