Non-Interactive Inline Frames for Live Streams and VODs gives out error when in use

yes

you sure? I am worried that if I ignore them my site will get more and more errors then eats out a lot of ram…
sorry if this wasn’t the case.

Yes

That’s not possible…

1 Like

okay thanks!

I just tried my site in an incognito window, and without signed in, the server returns a 401 response.

May I ask you that is it better to fully utilize the API and ask the user to sign in everytime my site loads?

The documentation for embedding is here

You have followed this correctly.

I don’t see an issue here.

Nothing of what you have posted would return a 401 visible to the visiting user

I need to type something in chat, then it prompt me to log in, after logging in, it gives me this error

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.twitch.tv’) does not match the recipient window’s origin (‘http://127.0.0.1:5500’).

Then I have to refresh the whole page to get it to load correctly.

You are attempting to post from a HTTP page to HTTPS page which is blocked due to permission settings.

I assumed you had set this up on a “proper” website/test and not running off a self host/127/non SSL address

1 Like

I see. I will upload this site to digital ocean and see whether is there any more error comes out.

Thanks for the help.

All of the errors you have highlighted are completely irrelevant error messages. And unrelated to

The real issue doesn’t generate a console error.

1 Like

I see… thanks.

@BarryCarlyon

I have deployed my site using netlify and the site domain is: https://trick2gsite.netlify.com/

Still, whenever I open the console it gives me these error messages.

The thing I don’t understand is:

  1. if it shows 401 it must mean that I dont have the authorization to access that server. in my site’s youtube section, I used fetch to GET the http request hence passed in my API key. but twitch does not mention any of this.

  2. I dont have access at this part of the code:

The error you have posted is irrelevant and safe to ignore.

Usually part of a code test where the code attempts to see if it is in an iframe or now.

Whats the actual problem?

Let’s say that I open my site and the streamer is not online.
So the site is idle for like 1 few hours.
Then the streamer went online.

So at that point if I open console, it will display a tons of error messages.
I did not get the chance to screenshot it.
And Chrome will consume a lot of CPU power.

Once I closed my site, CPU usage went back to normal.

That’s “normal” get similar on the main Twitch Website

hmmm I see, sorry if it seems that I dont trust you.
I am fairly new to this, just want to make sure that my project can reach a certain standard.

Also maybe I should deploy my site to a proper server then see how it goes. You think this is an good idea?

Also here is the screenshot of most of the errors I got.

And your web page is not working as expected?

All I see are a number of normal errors that just occur, and for some reason your computer is unable to resolve connections to Twitch as the DNS resolver is buggered, which is not a problem this forum can help with

1 Like

the site works, just need a refresh sometimes.

thanks for the help!

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