Onebox-fout maar OG-tag aanwezig

AI-generated summary

sedget reports an error when posting a link from their blog to Discourse: “Sorry, we were unable to generate a preview for this web page, because the following oEmbed / OpenGraph tags could not be found: description, image.” Despite this, sedget confirms the OpenGraph tags are present and verified via iframely’s debugger. codinghorror suggests the issue may stem from the blog’s hosting platform blocking unknown user agents — a common behavior — which could prevent Discourse’s onebox system from fetching the correct metadata. sedget acknowledges the advice and plans to investigate their hosting configuration. The core issue appears to be server-side content delivery based on user-agent, not missing metadata or a Discourse bug.

hi there,
i have got this error message when i’m posting a link from my blog on discourse.

Sorry, we were unable to generate a preview for this web page, because the following oEmbed / OpenGraph tags could not be found: description, image

But this is strange because the opengrph tags are set.
for example :
https://gobages.com/video-peche-perches-dete

the check result on iframely tell me every thing is good Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed

Anyone can help me about that ? Is it a bug from my website or from discourse onebox construction ?

If you are referring to web pages on your blog, it’s not uncommon for some blog hosting platforms to block all unknown user agents from requesting pages on the target site.

If the metadata checks out in third party tools, and you are certain the proper metadata is present in the returned HTML content, then I’d guess your hosting platform is blocking unknown request user-agents, or otherwise returning different content based on the user-agent provided in the request headers.

Thanks for the answer I’m going to check things on this way.