# Embed give me error status 400

**URL:** <https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595>\
**Category:** API\
**Created:** [May 13, 2020, 9:18pm UTC](https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595 "2020-05-13T21:18:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emanuele\_Capizzi](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/emanuele_capizzi/32/6915_2.png) [@Emanuele\_Capizzi](https://discuss.dev.twitch.com/u/Emanuele_Capizzi)\
**Post date:** [May 13, 2020, 9:18pm UTC](https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595/1 "2020-05-13T21:18:35Z")

</div>

Hi, why my embed give me this error?

`{"errors":{"parent":["parent query string value contains invalid domain name"]},"title":"One or more validation errors occurred.","status":400}`

My embed is this:

```
                            <script src="https://embed.twitch.tv/embed/v1.js"></script>
                            <script type="text/javascript">
                                var embed = new Twitch.Embed("twitch-embed", {
                                    width: 500,
                                    height: 400,
                                    channel: "lavitasecondopizzi",
                                    layout: "video",
                                    autoplay: false
                                });

                                  
                                embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
                                    var player = embed.getPlayer();
                                    player.play();
                                });
                            </script>
```

---

<div class="post-metadata">

**Author:** ![Marenthyu](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/marenthyu/32/530_2.png) [@Marenthyu](https://discuss.dev.twitch.com/u/Marenthyu)\
**Post date:** [May 13, 2020, 9:23pm UTC](https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595/2 "2020-05-13T21:23:41Z")

</div>

You are running into the issue mentioned here: [Twitch Embedded Player Migration - Timeline Update](https://discuss.dev.twitch.com/t/twitch-embedded-player-migration-timeline-update/25588)

This is due to a change in modern browsers, but you’ll be able to get around it by following the advice here: [Twitch Embedded Player Updates in 2020](https://discuss.dev.twitch.com/t/twitch-embedded-player-updates-in-2020/23956)

---

<div class="post-metadata">

**Author:** ![Emanuele\_Capizzi](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/emanuele_capizzi/32/6915_2.png) [@Emanuele\_Capizzi](https://discuss.dev.twitch.com/u/Emanuele_Capizzi)\
**Post date:** [May 13, 2020, 9:28pm UTC](https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595/3 "2020-05-13T21:28:11Z")

</div>

if my site is in an vps and no have a domain name but only ip it work too?

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [June 12, 2020, 9:28pm UTC](https://discuss.dev.twitch.com/t/embed-give-me-error-status-400/25595/4 "2020-06-12T21:28:14Z")

</div>

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