Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS load issue #48

Closed
adrienvsj opened this issue Nov 18, 2022 · 23 comments
Closed

CSS load issue #48

adrienvsj opened this issue Nov 18, 2022 · 23 comments

Comments

@adrienvsj
Copy link

Hello,

Every other time I can't load the CSS of the pages and I get this error in the console :

http://192.168.1.26/new.css net::ERR_CONNECTION_RESET

I have to refresh the page to get the display back.
I use this ESP32: https://www.amazon.fr/gp/product/B08BTLYSTM
I use firmware 6.0

Thank you

@technyon
Copy link
Owner

Hi and sorry for the late answer. I don't have an idea really, it works for me. Does the "inter.css" load?

@technyon
Copy link
Owner

P.S.: I'm running on wired ethernet. I'll try switching to WiFi and see if I can reproduce the issue.

@alexdelprete
Copy link
Collaborator

alexdelprete commented Nov 30, 2022

I confirm the issue. I'm on wired ethernet with my notebook, but I don't think that how you connect to the network should influence the functionality, you can have more latency, but it should be the same, functionality-wise.

Also, refreshing doesn't help much, it seems random: if I refresh 4-5 times, eventually CSS pulls up, but only one time and in between I see connection reset or the page without CSS.

This happens with Chrome and Edge (that is chrome based). I have to install Firefox to check if that could be the issue.

image

image

@technyon
Copy link
Owner

technyon commented Dec 1, 2022

I mean I'm on wired ethernet with my ESP, using a W5500 module.

@alexdelprete
Copy link
Collaborator

Oh sorry, I assumed you had a wireless module like me.

@technyon
Copy link
Owner

technyon commented Dec 3, 2022

Hi,

I've switched to Wifi for testing, but couldn't reproduce the issue. I'd say it must be something on your end, although it's strange it's always this one file. Can you try with a different browser / computer ?

@alexdelprete
Copy link
Collaborator

alexdelprete commented Dec 3, 2022

I tried with Chrome and Edge. Now I installed Brave on another computer:

image

If I refresh 2-3 times eventually CSS is picked up.

@alexdelprete
Copy link
Collaborator

I just installed Firefox: it always picks up CSS correctly. So it's something with chrome-based browsers. I don't know if Brave is chrome-based, will check it up. In any case, it should work on all browsers.

image

@technyon
Copy link
Owner

technyon commented Dec 4, 2022

I tried with both Firefox and Chrome and had no issues. Maybe do a clean install of chrome?

@alexdelprete
Copy link
Collaborator

Works perfectly, apart Nuki Hub, so I don't think that's a good idea. Furthermore: in a brand new pc Chrome does the same exact thing, so I doubt it's Chrome.

I also installed Brave from scratch, same issue.

@ruimarinho
Copy link

I'm also having the same issue on a fresh install of 6.8.

@Frank-1964
Copy link

Frank-1964 commented Jan 24, 2023

Same issue here with nuki_hub 7.2 an Chrome 108.0.5359.71 under Linux Ubuntu.

The javascript console shows:
Failed to load resource: net::ERR_CONNECTION_RESET

You can see the error loading new.css here:
Bildschirmfoto vom 2023-01-24 17-05-07

@alexdelprete
Copy link
Collaborator

Something's not right with the webpage, here's what Edge (chrome based) is reporting:

image

The only browser I don't have problems with is Firefox, on ALL chrome-based browsers there's a compatibility issue.

@technyon
Copy link
Owner

I'm not a web developer, if someone wants to fix the HTML go ahead :D. The page displays fine except for some users where the CSS for some reason doesn't load. I have no explanation for that, it's static content that's delivered if requested. What's even stranger is that inter.css loads, but new.css doesn't - it's pretty much the same code.

The web page is still usable - it's a simple table based page that is just looks a bit nicer with the CSS.

@alexdelprete
Copy link
Collaborator

alexdelprete commented Jan 25, 2023

The web page is still usable - it's a simple table based page that is just looks a bit nicer with the CSS.

No it isn't. It takes a lot of time to load, and sometimes it throws errors (RESET, timeout, etc.). I installed Firefox just to use Nuki Hub. :)

I'm not a dev, but I'll check if there are some validation tools online that maybe will optimize the CSS code.

BTW: can't find the .css files in the repo. what am I missing? are they generated at runtime?

@technyon
Copy link
Owner

technyon commented Jan 25, 2023

WebCfgServerConstants.h lines 6 and 10. You'll find the URL where I copied it from in the comments above.

P.S.: Still no issue for me, no matter which browser I use.

@alexdelprete
Copy link
Collaborator

P.S.: Still no issue for me, no matter which browser I use.

These things drive me crazy. Many of us have issues with that...on Chrome. How is it possible you have no problems...:)

@mundschenk-at
Copy link
Collaborator

Maybe a different OS/version?

@alexdelprete
Copy link
Collaborator

alexdelprete commented Jan 25, 2023

Maybe a different OS/version?

We found the problem...and fixed it, it was CSS code plus another minor thing. Great teamwork on Discord. Join us next time, we disconnected now. :)

@technyon
Copy link
Owner

Please check release 7.3

@Frank-1964
Copy link

7.3 works for me now. Thanks :-)

@regevbr
Copy link
Contributor

regevbr commented Jan 26, 2023

7.3 works for me now. Thanks :-)

Same here many thanks!

@technyon
Copy link
Owner

ok I'll close the issue then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants