I’m trying to understand the extension from the tutorial “Extension 101 tutorial series”, but I have a problem…
Everytime I try to do the Local server test, I get the older version of the panel.html.
No matter what I change, this remains the same. and I don’t understand why
I tried ro restart compute, but it shows always this version, and not the newer one.
Other thing that happens is… if I stop my localserver on port 8080, The extension still shows the panel above. So even if the server is stopped, I can’t stop extension for showing the same result. The only way I have to show the same result as my panel.html is to press on submit, so it changes…
There, I stopped the local host and realoded the page, and it still shows the older version of the extension. I am not on the hosted test (Or I don’t think so )
Is there a part where I can see the exceptions? maybe I haven’t reached that point on What am I reading of the Twitch API. isn’t the Twitch console this page ¿Twitch Developers?
Where can I see the iframe tree? The only way I can think of where it could be loading the code from is here:
Ok, right now I have not really clue on what’s going on…
Everytime I open my twitch channel, I see the extension as I showed on the first post of this topic (Even with the local server not working).
I have done two additional tests, which makes this whole thing even weirder:
1.- If I change the “Testing Base URI” on the twitch console to another url… the extension shows nothing (as it should be). if I come back to the port 8080, it still shows the panel from the first post.
2.- If I click on the submit button of the extension (without starting the local server) it says " the localhost page has rejected the connection"
If I start the server and click on the submit button, the extension changes to my real panel.html:
Then something somewhere in your stack/your machine is awake on 8080 and serving content. But only to GET URL’s
(A released extension won’t be able to POST as navigation is blocked/not permitted, but thats outside the scope of this thread)
Follow the iframe tree and see whats being loaded from where
So if you right click the extension and hit inspect.
You can follow the elements up and check the URL that is in use on the iframe
Then visit that URL directly and see whats returned.
If it’s loading when your server is off, then you have another server serving content responding to GET requests.
However, if I write netstat on the cmd, I can’t find any application using the port 8080. Right now i’m really confused… I can’t understand how is that url working
Find whatever it is seving the extension on localhost:8080 (and check your /etc/hosts file instead you have localhost set to not 127.0.0.1 a ping localhost should confirm the IP for localhost as 127.0.0.1 but worth a check)
OK, it seems that the software called “Twitch Developer Rig” was somehow involved. Though I never ended the configuration, refreshing the Manifest seems to solve the problem… I still don’t know exactly how this happened, but i’m pretty sure that will end up realizing.
Thanks!!! Problem solved!!!
(PD: my localhost was set on 127.0.0.1)
PD2: well… after testing many things, the problems wasn’t fixed at all. For some reason, I can’t manage to load the panel.html from my local server… Creating the simple extension I wanted to is getting more completed than I though. and I haven’t even started…