chagel / uberist

Wunderlist3 widget for Übersicht
MIT License
1 stars 3 forks source link

Übersicht debugger: WebSocket network error: The operation couldn’t be completed. Connection refused #5

Open mvaneijgen opened 7 years ago

mvaneijgen commented 7 years ago

I get the following error in the Übersicht debugger WebSocket network error: The operation couldn’t be completed. Connection refused which is counting up every second. This results in really high CPU usage.

I have did some debugging and it only happens when your widgets is enabled. The weird part is what the widgets works great except for the high CPU usage. Is there any way to fix this?

chagel commented 7 years ago

Thanks for reporting. I did a quick look and find out the error disappeared if I remove following line,

api = new WunderlistSDK({'accessToken': @access_token, 'clientID': @client_id})

By replacing old SDK didn't do the trick. So I doubt if the Ubersicht recent updates have problems with JQuery getScript function. Since there is still no official way to load external script file in Ubersicht, I'll look into this when I have time.

Btw, it's a 1 sec interval call loop - doesn't seem to have the ability to ruin your CPU..

mvaneijgen commented 7 years ago

Hey @chagel thanks for the reply, when I disable that line there are no more todos being shown. I made a small screencast to show you what is happening on my end. I tried several things with all my widgets enabled and with only uberlist active.

https://www.youtube.com/watch?v=Euvl_IzE5dA&feature=youtu.be

letsgorocket commented 6 years ago

Hi @chagel, I have a question about the first step: "Register your app on Wunderlist developer site". What should I put in "APP URL" and "AUTH CALLBACK URL"?

Thank you!

screen shot 2018-01-17 at 3 18 50 pm