DWC fails to download plugin
-
Using DWC version 3.4.2. I have attempted to create a custom plugin, the only problem is, when I load it into DWC it fails to load. DevTools reports that the connection was reset (net::ERR_CONNECT_RESET) but, when loaded in the browser via it's link it loads fine without any issues. I have attempted to clear browser cache, clear cookies, etc with no such luck in solving this issue.
Using a standalone version of DWC built from it's source also results in the plugin loading perfectly fine
Any ideas on how to fix this? I can't seem to find anything I haven't already tried
-
Can you update to DWC 3.4.5?
-
@Phaedrux Just as I finished typing out a "It just fixed itself" reply, it breaks itself again. I have updated to 3.4.5 and it has not resolved the issue.
The code used in the extension is below'use strict' console.log("Test"); const x = async () => { const req = await fetch(`${window.location.origin}/rr_model?flags=d99fn`, {method: "GET"}); if (req.status === 200) { const data = await req.json(); console.log(data); } } x(); //setInterval(() => {x()}, 1000);
This code loads and runs fine when I run it in a instance built straight from the githubCorrection: It works when loaded as a built-in plugin -
@Nova1545 How do you built the plugin? Are you using the
build-plugin
command from DWC to generate a ZIP file? Note that external plugins cannot be loaded in dev mode. -
@chrishamm Yes it is built using build-plugin
-
@Nova1545 If the connection is reset while loading a file, you probably have a problem with the connection between your PC and Duet. I guess you are operating your Duet in standalone mode? What board do you have? If it is a WiFi board, have you checked the WiFi signal yet?
-
@chrishamm Duet 3 Mini 5+ in standalone mode, connected via ethernet. The file also loads perfectly fine if I copy the link and open and view it in a normal browser tab.
To add insult to injury, other plugins (Such as the EndstopsMonitor and HeightMap) are showing a similar behaviour. However, it's only the plugins having any issues, the DWC interface otherwise loads and works perfectly fine.
-
@Nova1545 Maybe an issue with an adblocker? Try to disable your browser addons.
-
@chrishamm Yes it was, didn't even think to try disabling that. Thanks!
-
-
-
FWIW - I moved away from using browser based add blockers and now use pihole. Because it blocks add requests before they leave for the internet it has multiple benefits.
-
@stuartofmt I currently use both (Pi-hole doesn't work for some sites, even after adding the domains they use for ads), I will just add an excpetion to the ad-block for the duet page
-
@Nova1545 said in DWC fails to download plugin:
@stuartofmt I currently use both (Pi-hole doesn't work for some sites, even after adding the domains they use for ads), I will just add an excpetion to the ad-block for the duet page
Yeah - I hear you. And not much to be done when the adds are resolved at the server end. Personally, I was lucky to even get away with pihole. SWMBO still gets annoyed with the "sponsored" search results not being accessible,