Open krichter722 opened 7 years ago
I can confirm this issue still persists, as is discussed here[1] with comments from the (deluge) developer regarding a fix.
I've committed a fix for this however Mozilla are refusing to approve latest version of the addon since it uses asynchronous HTTP requests (which it always did). I'll need to rewrite the entire addon in a different way to get it properly approved now.
@GodKratos, I still got the error with 0.2.3.1.
So, I poked around and added an application/json
header in the getSessionID
and bittorrent-webui works again with deluge \o/. (But don't trust my fix as-is, first time in a FF plugin)
diff --git a/chrome/content/DelugeDispatcher.js b/chrome/content/DelugeDispatcher.js
index 1f97f0f888..25130685cb 100644
--- a/chrome/content/DelugeDispatcher.js
+++ b/chrome/content/DelugeDispatcher.js
@@ -131,6 +131,7 @@ function DelugeDispatcher() {
function getSessionID() {
var request = new XMLHttpRequest();
request.open( "POST", self.getWebUIAddress() + "/json", false, null, null );
+ request.setRequestHeader("Content-type", "application/json");
try {
request.send(
Thanks, I suspected I would need to insert that somewhere else in there but I haven't been able to test this version fully yet to validate that.
dev branch in deluge breaks it, giving an 500 Internal Server error. I'd love to see a fix. Thanks!
I've committed the fix above for the deluge dispatcher, give that a try and let me know if it fixes the issue.
@GodKratos I am also using deluge webUI. How can I manually install the plugin from github to use? I've downloaded a zip of the repo but when I try to install it, firefox complains that the add-on is unsigned. I think addon signing can only be done by the creator?
perhaps @Gravemind can help with this... still have this issue. I'm using waterfox now since firefox has killed so many addons.
You should be able to download the repo as a zip and then rename it to .xpi to install. I've also stopped using Firefox now in favour of Pale Moon.
@GodKratos In bittorrent-webui-master\releases I see the xpi files, I have to use those right? Is it something else? waterfox let me install bittorrent_webui-0.2.3.1-fx but it does not work with my deluge webui... I get a server did not respond error.
Clicking on magnet links on linuxtracker.org usually adds the torrents to deluge-web with this one click and shows a configuration popup (~"Torrent added successfully"). Now the torrent isn't added and
JSONException: Invalid JSON request content-type: text/plain
is displayed instead of the success message.experienced with BitTorrent-WebUI+ 0.2.3.0.1-signed.1-signed, Firefox 52.0 and deluge-web 2.0.0.dev6970+5348465+201703142101~ubuntu16.10.1