Comments (11)
No. It turns out that I had an id="webui" attribute and I changed it and boom it worked.
from webui.
Glad to hear that. Also thank you for sharing the screenshot, the SameSite
warning is fixed as well (ff97452).
from webui.
Mine is archlinux, using the main branch, everything is normal
from webui.
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.
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.
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.
from webui.
[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.
from webui.
from webui.
The error is clearly said that there is another webui
object.
More inf:
Line 110 in 50e9e4c
from webui.
Did you included webui.js
twice? or do you have another JavaScript with similar global object name webui
?
from webui.
Related Issues (20)
- Is webui.js needed when webui_show() is for type WEBUI_SHOW_URL? HOT 2
- example bug, segment fault HOT 1
- webui_wait() returns when device goes to sleep. HOT 3
- Is it possible to embed web resources? HOT 3
- Using zig cc HOT 7
- Latest changes makes examples crash on macos HOT 5
- Segfault on dynamically linked library when built with `make WEBUI_USE_TLS=1` HOT 6
- Translating WebUI website HOT 1
- Issues with wait/close HOT 1
- How to wait() twice? HOT 1
- send events from backend to frontend HOT 1
- Memory leak in `_webui_get_file_name_from_url`
- Permission Denied HOT 6
- Chrome show unlock key-ring screen HOT 1
- [Request] Librewolf support
- [Request] Multiwebview support HOT 1
- Problem with set_file_handler in version 2.5.0 beta2 HOT 2
- Expect to support D Programming Language.
- support php Programming Language.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webui.