Ultima Posted February 19, 2010 Report Share Posted February 19, 2010 @Yochanan: http://sites.google.com/site/ultimasites/files/utorrent-gadget.2010021918002068.gadget?attredirects=0http://forum.utorrent.com/viewtopic.php?pid=457156#p457156This one should hopefully behave more similarly to the old one.It turns out this thing always did poll the backend on connection failure. Which is still bad, as I mentioned earlier, but oh well I don't want to break/change the experience, so I'm just going to implement it that way anyway. Link to comment Share on other sites More sharing options...
Yochanan Posted February 19, 2010 Report Share Posted February 19, 2010 I run µTorrrent 24/7 anyway, so it's not so bad on my end. Thanks!EDIT: I noticed that about every 30 seconds it says 'Error: Check Settings' for a few seconds then goes back to normal. Link to comment Share on other sites More sharing options...
Tattvalis Posted February 20, 2010 Report Share Posted February 20, 2010 When I try to create a new profile, enter all the information( MyWebUI, Tattva, Password, 127.0.0.1, 47810, 15000, 1000)and then I hit Save, but nothing happens.I am using Windows 7 x64.I hope someone can help me!Thank you in advanceBest regardsTattva Link to comment Share on other sites More sharing options...
Ultima Posted February 20, 2010 Report Share Posted February 20, 2010 @Tattvalis: Make sure you're using the updated gadget -- see the link below in this post.@Yochanan: Ugh. I tried to model the changes after the existing code, but modeled it sloppily. It should be fixed for real now... Sorry for all the stupid bugs!(I'd like to blame the fact that I'm not completely familiar with this codebase, but that's hardly an excuse )http://sites.google.com/site/ultimasites/files/utorrent-gadget.2010022012293105.gadget?attredirects=0I went ahead and also incorporated the first half of doone's fix for the torrent line overflow for both skins. (Second half I left alone because IE's CSS support can't handle inserting ellipses on truncated strings, which that shorten() manually does) Link to comment Share on other sites More sharing options...
Yochanan Posted February 20, 2010 Report Share Posted February 20, 2010 The bandwidth limit has been exceeded on your Google Sites account. I'll try again later. Thanks again for working on it. Link to comment Share on other sites More sharing options...
Ultima Posted February 20, 2010 Report Share Posted February 20, 2010 Mirror...http://www.mediafire.com/download.php?mm2nmdddzym Link to comment Share on other sites More sharing options...
lefteris82 Posted February 25, 2010 Report Share Posted February 25, 2010 Since I update the mtorrent to 2.0 version the sidebar stopped working. It cannot connect at allany solution for this???? Link to comment Share on other sites More sharing options...
DreadWingKnight Posted February 25, 2010 Report Share Posted February 25, 2010 @Tattvalis: Make sure you're using the updated gadget -- see the link below in this post.@Yochanan: Ugh. I tried to model the changes after the existing code, but modeled it sloppily. It should be fixed for real now... Sorry for all the stupid bugs!(I'd like to blame the fact that I'm not completely familiar with this codebase, but that's hardly an excuse )http://sites.google.com/site/ultimasites/files/utorrent-gadget.2010022012293105.gadget?attredirects=0I went ahead and also incorporated the first half of doone's fix for the torrent line overflow for both skins. (Second half I left alone because IE's CSS support can't handle inserting ellipses on truncated strings, which that shorten() manually does) Link to comment Share on other sites More sharing options...
Yochanan Posted February 25, 2010 Report Share Posted February 25, 2010 Try downloading the updated version Ultima posted right above. EDIT: DreadWingKnight beat me to it. Link to comment Share on other sites More sharing options...
lefteris82 Posted February 25, 2010 Report Share Posted February 25, 2010 thank you guys .I installed the version above. It connects for 1sec, show upload/download speed and then goes back to 'error check settings'. :/edit: i replaced with the latest webUI and it works! Link to comment Share on other sites More sharing options...
Ultima Posted February 26, 2010 Report Share Posted February 26, 2010 O_oAs far as I know, webui.zip has absolutely nothing to do with the gadget... I don't see any reason why updating WebUI would help. Sounds more like coincidence to me, but good enough Link to comment Share on other sites More sharing options...
Tattvalis Posted February 27, 2010 Report Share Posted February 27, 2010 Still not working. Same error. It won't save what I enter. Link to comment Share on other sites More sharing options...
nateap87 Posted March 16, 2010 Report Share Posted March 16, 2010 i can't get any of this to work for the life of me. check settings. connectivity error...blah blah blah Link to comment Share on other sites More sharing options...
giogio1 Posted March 20, 2010 Report Share Posted March 20, 2010 I have only one problem, when I resume the system from the hibernate state the gadget stop working.Every time I resume the system from ibernate state i must open and close the gadget configuration and the gadget return to work. Link to comment Share on other sites More sharing options...
Ultima Posted March 21, 2010 Report Share Posted March 21, 2010 Probably because the cached token expired, and I was too lazy to implement token re-requesting. I can't say if/when I'll get around to messing with it again, but at the moment, I'm tight on leisure time. Link to comment Share on other sites More sharing options...
giogio1 Posted March 21, 2010 Report Share Posted March 21, 2010 Probably because the cached token expired, and I was too lazy to implement token re-requesting. I can't say if/when I'll get around to messing with it again, but at the moment, I'm tight on leisure time..I understand, however, is not a big deal, I'll wait for a possible fix, thanks for your help and for your useful gadgets. Link to comment Share on other sites More sharing options...
Quitch Posted April 6, 2010 Report Share Posted April 6, 2010 Unfortunately while I can connect to WebUI through my browser I can't get the plugin to connect. I've entered the username, password, webui URL is 127.0.0.1 and the webport is set to use 8080 (setup as the default listening port), but on saving I get an error stating it cannot connect.I've updated to the latest version of the gadget, tried a guest account, tried a simpler password, tried using the PC IP instead of the localhost IP. No ball. Link to comment Share on other sites More sharing options...
3o3 Posted May 19, 2010 Report Share Posted May 19, 2010 I'll try to code the re-requesting token when expired myself but I am not very used to this token system and can you tell me how can I understand the token is expired so that I can add a check and re-request function to the places that throw an exception.Or at least can you tell me how long it takes for a token to expire? Link to comment Share on other sites More sharing options...
Lord Alderaan Posted May 20, 2010 Report Share Posted May 20, 2010 If the token is expired you will get an invalid request error. Which in plain text looks like this:HTTP/1.1 400 ERRORConnection: keep-aliveContent-Length: 15Content-Type: text/htmlinvalid request Link to comment Share on other sites More sharing options...
3o3 Posted May 24, 2010 Report Share Posted May 24, 2010 thanks for the info.is there a way to manually flush token cache so that I can test instantly instead of waiting? Link to comment Share on other sites More sharing options...
Firon Posted May 24, 2010 Report Share Posted May 24, 2010 Restart the client. That invalidates all tokens. Link to comment Share on other sites More sharing options...
3o3 Posted May 25, 2010 Report Share Posted May 25, 2010 Okay thanks.Anyone who suffers token expiration problem on the sidebar gadget, the following instructions will probably help you. ( I am using Windows 7 ).- Open an explorer window ( simply open Computer )- Type "%localappdata%\Microsoft\Windows Sidebar\Gadgets\" without the brackets- Get into the folder that includes "utorrent" in its name- Get into the "js" folder and open "main.js" with notepad or some other text editor- Find the function named "getData()", press CTRL+F and write "function getData" without brackets to find it- Find the following part, it will be a few lines below the "function getData()..":if (XMLHttp.readyState == 4){ if (XMLHttp.status == 200) { clearTimeout(cTimeout); cTimeout = null; checkSettings = false; setGetDataTimeout(); parseData(); } else{ timeoutRequest(); }}- Replace the part with the following:if (XMLHttp.readyState == 4){ if (XMLHttp.status == 200) { clearTimeout(cTimeout); cTimeout = null; checkSettings = false; setGetDataTimeout(); parseData(); } else if (XMLHttp.status == 400) { document.getElementById("dockedDonwload").innerHTML = "Trying to renew the token..."; globaltoken = ""; getToken(function () { getData(); }); } else{ timeoutRequest(); }}Save and exit the text editor, restart the gadget and you probably won't have hanging problems any more. Link to comment Share on other sites More sharing options...
giogio1 Posted May 26, 2010 Report Share Posted May 26, 2010 Anyone who suffers token expiration problem on the sidebar gadget, the following instructions will probably help you. ( I am using Windows 7 ). ...Thanks for your tip it worked fine, even after the resumption of the Hibernate State system. Link to comment Share on other sites More sharing options...
Quitch Posted May 26, 2010 Report Share Posted May 26, 2010 When I replace that code segment (tried twice in case of cock-up) my gadget now appears as a tiny grey box.Just to check, my function now appears as followsfunction getData(){ XMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); globalURL = globalReqUrl + "&list=1" ; if(cTimeout != null) clearTimeout(cTimeout); cTimeout = setTimeout(timeoutRequest, globaltimeout);if (XMLHttp.readyState == 4){ if (XMLHttp.status == 200) { clearTimeout(cTimeout); cTimeout = null; checkSettings = false; setGetDataTimeout(); parseData(); } else if (XMLHttp.status == 400) { document.getElementById("dockedDonwload").innerHTML = "Trying to renew the token..."; globaltoken = ""; getToken(function () { getData(); }); } else{ timeoutRequest(); }} } XMLHttp.open("GET", globalURL, true); XMLHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); XMLHttp.send(null); function timeoutRequest(){ XMLHttp.abort(); setGetDataTimeout(); checkSettings = true; document.getElementById("dockedDonwload").innerHTML = Resources.Error; document.getElementById("dockedDonwloadCount").innerHTML = Resources.Check; document.getElementById("dockedDonwloadSpeed").innerHTML = ""; document.getElementById("dockedUpload").innerHTML = Resources.Settings; document.getElementById("dockedUploadCount").innerHTML = ""; document.getElementById("dockedUploadSpeed").innerHTML = ""; } function setGetDataTimeout(){ if(getDataTimeout != null) clearTimeout(getDataTimeout); getDataTimeout = setTimeout(getData, globalrate); }} Link to comment Share on other sites More sharing options...
3o3 Posted May 26, 2010 Report Share Posted May 26, 2010 There is one extra paranthesis, you probably misselected it during the replacement. else{ timeoutRequest(); }} } <--- this one XMLHttp.open("GET", globalURL, true); XMLHttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT"); XMLHttp.send(null);remove that and should work fine. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.