Twitch auto embed broken

AI-generated summary

The issue of Twitch auto-embeds breaking in Discourse was reported by Grandy, who noted a console error related to the missing parent parameter in the Twitch embed API. codinghorror asked for an example link, and Grandy provided one, confirming the problem occurred with oneboxing. The issue was acknowledged by codinghorror, who suggested a fix. The problem was resolved by tgxworld, who confirmed the fix was implemented in a GitHub commit and thanked Grandy for reporting it.

This was from an auto-embed of a Twitch video link I had posted in our Discourse forum. I’ve looked around other Discourse instances and seen the same thing, so I might not be alone with this.

The browser console error is as follows:

Twitch embed error message:
[NoParent] parent query string value was not specified
Docs: https://dev.twitch.tv/docs/embed/video-and-clips/

Is there a fix/workaround?

If there’s no current fix, it’d be great if I could specifically disable Twitch auto-embeds for now until there’s a fix; have tried blacklisting the site to no success, and I haven’t found any obvious-looking config for toggling certain embed types off.

1 Like

Can you post one of the Twitch links here? Do you mean oneboxing, when you post a link to (for example) a youtube video on a line by itself?

1 Like

Let’s try it, a random past video from the LEC.

https://www.twitch.tv/videos/656832103?t=00h52m35s

Aye, oneboxing. Tried without the extra time interval on the end but same issue.
Seems the embed needs an extra parameter now?

1 Like

Aha we should fix this if we can @sam .. if we can, before the release, if it is an easy one.

1 Like

This has been fixed

https://github.com/discourse/discourse/commit/b28d97b64a2dbe8c923acf1d3df5d277d1d136c5

Thank you for reporting @Grandy

3 Likes