# Embedding failure with https

**URL:** <https://staging-discuss.dev.twitch.com/t/embedding-failure-with-https/35284>\
**Category:** API\
**Created:** [December 8, 2021, 3:29pm UTC](https://staging-discuss.dev.twitch.com/t/embedding-failure-with-https/35284 "2021-12-08T15:29:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaumedesurville](https://avatars.discourse-cdn.com/v4/letter/g/3ab097/32.png) [@guillaumedesurville](https://staging-discuss.dev.twitch.com/u/guillaumedesurville)\
**Post date:** [December 8, 2021, 3:29pm UTC](https://staging-discuss.dev.twitch.com/t/embedding-failure-with-https/35284/1 "2021-12-08T15:29:05Z")

</div>

Hi all,

I am trying to embed Twitch live in a web app based on streamlit (python framework) but I keep getting an error no matter what parent I specify.

The URL is : [https://share.streamlit.io/user\_name/project\_name/main.py](https://share.streamlit.io/user_name/project_name/main.py)  
and I tried this : `<iframe src="https://www.twitch.tv/channel&parent=localhost&parent=share.streamlit.io/user_name/project_name/main.py "></iframe>`

I also tried some similar variations, but nothing works. My guess was that the problem was coming from the “.py”.

I am now clueless.

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [December 8, 2021, 3:33pm UTC](https://staging-discuss.dev.twitch.com/t/embedding-failure-with-https/35284/2 "2021-12-08T15:33:54Z")

</div>

The parent should be a domain only. Not a domain+path

```auto
<iframe src="https://www.twitch.tv/channel&parent=localhost&parent=share.streamlit.io/user_name/project_name/main.py "></iframe>

```

should be, additionally your embed URL is invalid:

```auto
<iframe src="https://player.twitch.tv/?channel=twitch&parent=share.streamlit.io "></iframe>

```

Swap `channel=twitch` for the target channel `channel=monstercat`

> **[Video & Clips](https://dev.twitch.tv/docs/embed/video-and-clips/)**
>
> Embedding Video and Clips

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [January 7, 2022, 3:34pm UTC](https://staging-discuss.dev.twitch.com/t/embedding-failure-with-https/35284/3 "2022-01-07T15:34:08Z")

</div>

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