# הטמעות יוטיוב הפסיקו לעבוד עבור שרתים באירופה

**URL:** https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128
**Category:** Bug
**Created:** [1 באפריל,‏ 2021,‏ 3:46pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128 "2021-04-01T15:46:04Z")
**Posts on this page:** 19
**Page:** 2

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [6 באפריל,‏ 2021,‏ 7:42pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/24 "2021-04-06T19:42:33Z")

</div>

> [@jamie.wilson](#):
>
> `https://youtu.be/KCyIfcevExE`

And a wget from the server, if it helps?

 ![Screen Shot 2021-04-06 at 20.41.50](https://global.discourse-cdn.com/meta/original/3X/9/0/9024269bbf05656084298254898a3414f1518b63.png)

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [6 באפריל,‏ 2021,‏ 7:44pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/25 "2021-04-06T19:44:17Z")

</div>

Strange, no?

That the wget takes you to the consent page, but the onebox’ing doesn’t? 🤔

* * *

EDIT/UPDATE:

I’m not a python developer, but does this help?

> <https://stackoverflow.com/questions/66934826/accept-cookies-consent-from-youtube/66940841#66940841>

---

<div class="post-metadata">

### Author: ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)
#### Post date: [6 באפריל,‏ 2021,‏ 10:59pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/26 "2021-04-06T22:59:11Z")

</div>

I noticed that the ‘embed’ URLs for YouTube videos don’t (currently!) redirect to the consent page. I’ve created a couple of PRs so that we’ll attempt to fetch embed URLs and parse the JSON contained within the response body.

It’s not the most elegant solution, but it might be a reasonable way forward for now.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [7 באפריל,‏ 2021,‏ 7:05am UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/27 "2021-04-07T07:05:05Z")

</div>

That’s great news, appreciate you taking the time to look in to this for us all 👍🏻

---

<div class="post-metadata">

### Author: ![jamie.wilson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamie.wilson/32/185466_2.png) [@jamie.wilson](https://meta.discourse.org/u/jamie.wilson)
#### Post date: [7 באפריל,‏ 2021,‏ 8:37pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/28 "2021-04-07T20:37:20Z")

</div>

A possible fix for this has been merged in. Can those affected please update if possible, and let us know if the problem with Oneboxing videos has been resolved?

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [7 באפריל,‏ 2021,‏ 9:05pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/29 "2021-04-07T21:05:56Z")

</div>

This is 100% a YouTube issue, not a Discourse issue.

@techAPJ went over and above to solve a [similar issue with Instagram oneboxes last year](https://meta.discourse.org/t/why-instagram-link-onebox-like-this/138047/27), again when it was an Instagram issue and not a Discourse issue.

@jamie.wilson and anyone else who worked on this YouTube issue over the last week or so, I can’t thank you enough.

The level of support you all provide when it’s not even your problem is simply second to none.

I thank you all for your time and dedication 🙇🏻‍♂️

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [7 באפריל,‏ 2021,‏ 9:06pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/30 "2021-04-07T21:06:47Z")

</div>

> [@jamie.wilson](#):
>
> Can those affected please update if possible, and let us know if the problem with Oneboxing videos has been resolved?

I can update our Discourse tomorrow morning. Will report back.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [8 באפריל,‏ 2021,‏ 5:59am UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/31 "2021-04-08T05:59:47Z")

</div>

It’s looking good on my staging server - I’ll upgrade the production site this morning and will update my report.

Edit: our YouTube embeds are working properly again 👌 Thanks for your help @jamie.wilson!

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [8 באפריל,‏ 2021,‏ 10:49am UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/32 "2021-04-08T10:49:59Z")

</div>

Also confirmed!

I can even click “Rebuild HTML” on previously failed ones and the video appears in under a second 👏🏻

Great job @jamie.wilson - Thank you 🙇‍♂️

---

<div class="post-metadata">

### Author: ![Graham\_Anderson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/graham_anderson/32/197530_2.png) [@Graham\_Anderson](https://meta.discourse.org/u/Graham_Anderson)
#### Post date: [8 באפריל,‏ 2021,‏ 3:57pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/33 "2021-04-08T15:57:13Z")

</div>

Have you tried embedding via the [youtube-nocookie.com](http://youtube-nocookie.com) domain?

[Embed videos and playlists - YouTube Help](https://support.google.com/youtube/answer/171780?hl=en-GB#zippy=%2Cturn-on-privacy-enhanced-mode) → “Turn on privacy enhanced mode”

---

<div class="post-metadata">

### Author: ![Drakon74](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@Drakon74](https://meta.discourse.org/u/Drakon74)
#### Post date: [8 באפריל,‏ 2021,‏ 7:58pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/34 "2021-04-08T19:58:44Z")

</div>

Can also confirm this works, server is in Germany. Thanks a lot! ❤

---

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [8 באפריל,‏ 2021,‏ 9:01pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/35 "2021-04-08T21:01:47Z")

</div>

Any chance this could be merged into the stable branch as well to be included in its next release?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [8 באפריל,‏ 2021,‏ 9:04pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/36 "2021-04-08T21:04:43Z")

</div>

When a stable release is cut (next one happens next month) all commits will be included!

---

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [8 באפריל,‏ 2021,‏ 9:09pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/37 "2021-04-08T21:09:41Z")

</div>

Sorry, perhaps I’m not using the right terms here. I didn’t mean version 2.7, but what is likely to become 2.6.5.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [8 באפריל,‏ 2021,‏ 9:13pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/38 "2021-04-08T21:13:11Z")

</div>

Our policy is to only backport critical security fixes to old stable releases, so I’m afraid you will have to move to our standard release channel or wait for next stable.

Unless @jamie.wilson says it’s a clean backport, but at this point in the release cycle it may be too risky.

---

<div class="post-metadata">

### Author: ![mentalstring](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mentalstring/32/168934_2.png) [@mentalstring](https://meta.discourse.org/u/mentalstring)
#### Post date: [8 באפריל,‏ 2021,‏ 9:26pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/39 "2021-04-08T21:26:03Z")

</div>

Fair enough — that’s a reasonable policy and I respect that.

Just though asking anyway as this is a quite annoying thing to live with for some weeks for those who opted for this channel for the stability.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [8 באפריל,‏ 2021,‏ 9:30pm UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/40 "2021-04-08T21:30:41Z")

</div>

That’s the thing right? The `stable` channel is not our default release channel, and not what we ship to our many paying customers for a reason.

Because while it provides a “stable” source code for the product, the internet it interacts with is much more _dynamic_, and we go for great lengths to quickly adapt Discourse to the changing environment in the internet, be it changing behaviors on the browsers who are updated every other week, in the thousands of sites we onebox, etc.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9 באפריל,‏ 2021,‏ 12:47am UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/41 "2021-04-09T00:47:35Z")

</div>

It’s **stable** , but it’s actually less well tested, because many fewer people use it. If this issue had come up 10 months before the next stable release, it likely wouldn’t be back ported. In the English sense of the word stable you’re better off with tests passed.

I run Ubuntu only in long term release versions. I don’t recommend stable (or even beta) with discourse.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [10 באפריל,‏ 2021,‏ 8:00am UTC](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128/42 "2021-04-10T08:00:04Z")

</div>

This topic was automatically closed after 16 hours. New replies are no longer allowed.

[Previous page](https://meta.discourse.org/t/youtube-embeddings-have-stopped-working-for-servers-in-europe/185128.md?page=1)
