Code Monkey home page Code Monkey logo

Comments (11)

wwderw avatar wwderw commented on September 4, 2024 1

No. It turns out that I had an id="webui" attribute and I changed it and boom it worked.

from webui.

hassandraga avatar hassandraga commented on September 4, 2024 1

Glad to hear that. Also thank you for sharing the screenshot, the SameSite warning is fixed as well (ff97452).

from webui.

jinzhongjia avatar jinzhongjia commented on September 4, 2024

Mine is archlinux, using the main branch, everything is normal

from webui.

wwderw avatar wwderw commented on September 4, 2024

minExample

That's what I would get with the minimal example using the current main branch and using 2.4.2 official archive files after it would be connected for maybe 20-30 seconds. I have used it with zig build and regular gcc as well.

Since I hadn't had issues with the official binaries before now, that made me think it was browser related more compared to webui. Using Firefox 127.0.1 on Arch. Chromium is 126, but that one is on my Mint VM, I mention that, because that's the one picture.

from webui.

hassandraga avatar hassandraga commented on September 4, 2024

The browsers cut the connection if no activity for 2 minutes, so WebUI sends a ping every 20 seconds.

Another issue is sleep mode, OS cut all network activities based on power settings, including WebSocket. This issue gets solved just today (faa02ad) by making WebUI trying to re-connect if backend still alive. More info: #441.

What I suggest is to download the Nightly Build, use debug version instead of release, if issue still exists, then share logs here, and a screenshot of web browser DevTools console logs.

from webui.

wwderw avatar wwderw commented on September 4, 2024

I used an application that I was working on, with known working links to open up new windows and file handling and the file handling was not displaying properly, nor would it actually open windows when buttons were pressed. So even if I am wanting to get the server from timing out, it seems to be blocked. Really strange.

log.txt

from webui.

hassandraga avatar hassandraga commented on September 4, 2024
[Core]		_webui_http_handler() -> GET [/webui.js]
[Core]		_webui_http_handler() -> HTTP Status Code: 200
...
[Core]		_webui_server_thread([1]) -> Waiting more for connection
[Core]		_webui_timer_start()
[Loop] webui_wait()
[Loop] webui_wait() -> Waiting (Timeout in 15 seconds)
[Loop] webui_wait() -> Linux web browser loop
[Core]		_webui_server_thread([1]) -> Cleaning
[Core]		_webui_free_port([52942])
[Core]		_webui_free_mem(0x0x7fb4b8000b70)
[Core]		_webui_free_mem(0x0x7fb4b8000b70) -> Free 128 bytes
[Core]		_webui_server_thread([1]) -> Server stopped.
[Loop] webui_wait() -> Cleaning
[Loop] webui_wait() -> Main loop exit successfully

From logs I can say that webui.js is correctly sent, but failed to connect. Can you please share a screenshot of the web browser DevTools console logs?

from webui.

hassandraga avatar hassandraga commented on September 4, 2024

image

from webui.

wwderw avatar wwderw commented on September 4, 2024

consoleLog

from webui.

hassandraga avatar hassandraga commented on September 4, 2024

The error is clearly said that there is another webui object.
More inf:

if ('webui' in globalThis) {

from webui.

hassandraga avatar hassandraga commented on September 4, 2024

Did you included webui.js twice? or do you have another JavaScript with similar global object name webui?

from webui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.