Replies: 1 comment 2 replies
-
That is really tricky to debug. Does it also happen with a very simple "hello world" NiceGUI example? Does it work without Cloudflare? Maybe the Cloudflare logs or the server logs can provide more insight. To activate uvicorn server logging pass |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I'm running a server accessible via Cloudflare tunnel. It works most of the time, but occasionally I get a "Connection lost. Trying to reconnect..." page that stays forever. Inspecting this in Edge, I see a lot of syntax errors and
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
. See screenshot attached.Any idea what may be going wrong here? I suspect it has something to do with Cloudflare caching, but I'm not sure why it works most of the time and occasionally does this. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions