uebersicht icon indicating copy to clipboard operation
uebersicht copied to clipboard

Not displaying widgets

Open philliml74 opened this issue 5 years ago • 8 comments

Greetings,

I just tried out Uebersicht starting today and it was going great until all the sudden it was no longer displaying any of the widgets. I was working on trying to customize the wttr widget. I have since tried removing all of the widgets, uninstalling, removing the caches and application support data, re-installing. I have not been able to get the widgets to display again. I am seriously hoping that I just am missing something here.

I am attaching the console logs for Uebersicht. I can also provide a copy of the system report if you wish to review it, but don't feel safe publishing that package to a public forum.

Thanks! uebersicht.log

philliml74 avatar Oct 16 '19 19:10 philliml74

providing updated log file including the startup of the process as well as a webarchive of the debug console. uebersicht.log 127.0.0.1.webarchive.zip

philliml74 avatar Oct 16 '19 19:10 philliml74

Can you see any output in the Übersicht debug console? image

felixhageloh avatar Oct 17 '19 06:10 felixhageloh

I swear I tried to get this before and didn't get anything...but it looks like a status 400 (Bad Request) now:

image

philliml74 avatar Oct 17 '19 13:10 philliml74

Just a thought: Catalina has switched from bash to zsh for their default shell. This could affect what you are seeing here.

More information on Apple's support website: https://support.apple.com/en-us/HT208050

ericksonstudio avatar Oct 27 '19 16:10 ericksonstudio

Just adding that it seems I had this issue today as well, and coincidentally enough it was after configuring the WTTR widget. Running the program as sudo allows it to display the default widgets again (after copying them to the directory) but I'd rather not have to do that obviously. I can't find any other details and tried clearing tracesOf files / folders and what not but that didn't do much, it's like it needs a clean install almost (if run by root worked).

Did you ever work it out @philliml74 ?

Also: It works through accessing port 41416 in browser but the Debug console displays nothing, to the point where the element only consists of the default:

<html><head></head><body></body></html>

Solved Edit (For anyone that finds this in the future) Sorry for the quick update but it finally hit me to check the requests properly and I found the status 400 error. I then saw there was a bunch of cookies still set by the WTTR widget and thought to clear them all with the function specified below (in the Debug Console), and doing this seemed to instantly fix Übersicht on my desktop.

function deleteAllCookies() {
    var cookies = document.cookie.split(";");

    for (var i = 0; i < cookies.length; i++) {
        var cookie = cookies[i];
        var eqPos = cookie.indexOf("=");
        var name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie;
        document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
    }
}

BradPV avatar Dec 17 '19 05:12 BradPV

I will be honest, I had not tried anything further since my last note. I will have to check out your fix when I go to try setting this up again.

philliml74 avatar Dec 17 '19 14:12 philliml74

I learned something new: apparently NodeJS has a maximum header size. So if you have too many cookies the node server (which is what Übersicht is using behind the scenes) will reject the request with a 400 error.

This means the fix here is valid, but I will also check if there is a better fix

felixhageloh avatar Dec 28 '19 12:12 felixhageloh

@BradPV I used the function that you provided to clear the cookies from the debug console. Although the issue goes away for a while, it seems that the cookies build up very quickly and the issue returns in a few minutes. Do you know a workaround for this? I am only running this set of widget in simple bar. I had the same issue before with a different menu bar plugin (pecan). For you, does it just works after clearing it once? Or does the issue comes back later and you have to clear it again?

itsdawei avatar Jan 13 '21 22:01 itsdawei