issue: CloudFlare / Reverse proxy tunnel - Failed to fetch dynamically imported module #4367

Closed
opened 2025-11-11 15:52:28 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @matbeedotcom on GitHub (Mar 10, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

Latest docker

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

Loads

Actual Behavior

Doesnt load

Steps to Reproduce

Run a reverse proxy
Forward request

Logs & Screenshots

(base) ➜  ~ sudo docker pull ghcr.io/open-webui/open-webui:main    
main: Pulling from open-webui/open-webui
7cf63256a31a: Already exists 
183f0922284a: Already exists 
5dbb3b698b72: Already exists 
0c5ce2cb4ecc: Already exists 
96d17593eba8: Already exists 
4f4fb700ef54: Already exists 
2671deb00349: Already exists 
f13d720819a1: Already exists 
522e3f1759d3: Already exists 
d1f6a6db44f8: Pull complete 
b01de02d3356: Pull complete 
8cdd02903e6c: Pull complete 
5b6a8e7bce50: Pull complete 
a0e935071214: Pull complete 
3439e32d8c2b: Pull complete 
Digest: sha256:fff3d8017355097556d7600aa84b46e28b221201ecda9f9191d2249a05b88fc3
Status: Downloaded newer image for ghcr.io/open-webui/open-webui:main
ghcr.io/open-webui/open-webui:main
(base) ➜  ~ sudo docker run -d --restart unless-stopped -p 3000:8080 -v ~/.open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main   
f41c7553cf989984e2e25b728f4d37b02952530818a5b4a3786f1d1390e54058
(base) ➜  ~ sudo docker logs -f open-webui
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Generating WEBUI_SECRET_KEY
Loading WEBUI_SECRET_KEY from .webui_secret_key
/app/backend/open_webui
/app/backend
/app
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
INFO  [open_webui.env] 'ENABLE_OLLAMA_API' loaded from the latest database entry
INFO  [open_webui.env] 'OLLAMA_BASE_URLS' loaded from the latest database entry
INFO  [open_webui.env] 'OLLAMA_API_CONFIGS' loaded from the latest database entry
INFO  [open_webui.env] 'ENABLE_OPENAI_API' loaded from the latest database entry
INFO  [open_webui.env] 'OPENAI_API_KEYS' loaded from the latest database entry
INFO  [open_webui.env] 'OPENAI_API_BASE_URLS' loaded from the latest database entry
INFO  [open_webui.env] 'OPENAI_API_CONFIGS' loaded from the latest database entry
INFO  [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry
INFO  [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entry
INFO  [open_webui.env] 'DEFAULT_MODELS' loaded from the latest database entry
INFO  [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry
INFO  [open_webui.env] 'MODEL_ORDER_LIST' loaded from the latest database entry
WARNI [open_webui.env] 

WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS.

INFO  [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2
WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests.

 ██████╗ ██████╗ ███████╗███╗   ██╗    ██╗    ██╗███████╗██████╗ ██╗   ██╗██╗
██╔═══██╗██╔══██╗██╔════╝████╗  ██║    ██║    ██║██╔════╝██╔══██╗���█║   ██║██║
██║   ██║██████╔╝█████╗  ██╔██╗ ██║    ██║ █╗ ██║█████╗  ██████╔╝██║   ██║██║
██║   ██║██╔═══╝ ██╔══╝  ██║╚██╗██║    ██║███╗██║██╔══╝  ██╔══██╗██║   ██║██║
╚██████╔╝██║     ███████╗██║ ╚████║    ╚███╔███╔╝███████╗██████╔╝╚██████╔╝██║
 ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝     ╚══╝╚══╝ ╚══════╝╚═════╝  ╚═════╝ ╚═╝


v0.5.20 - building the best open-source AI user interface.

https://github.com/open-webui/open-webui

Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 221530.14it/s]
INFO:     Started server process [1]
INFO:     Waiting for application startup.
2025-03-10 17:12:29.500 | INFO     | open_webui.utils.logger:start_logger:140 - GLOBAL_LOG_LEVEL: INFO - {}
2025-03-10 17:12:47.255 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET / HTTP/1.1" 304 - {}
2025-03-10 17:12:47.479 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.BegOFQcc.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.510 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.Bzn_o8s1.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.521 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.DcmDifxE.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.521 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/AddConnectionModal.CULiiQLN.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.527 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Switch.CLaBGINu.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.533 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Help.BwQr8Rrb.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.537 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Selector.BdZaQ-lQ.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.538 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Drawer.DWdeYoCQ.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.538 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/ChevronDown.C_Siw547.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.539 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Messages.D-mnE1G1.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.541 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.JfCkWQoW.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.541 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.BVjymmPi.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.541 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Markdown.BPgl9swE.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.544 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/nodes/7.IrpJjv-N.js HTTP/1.1" 200 - {}
2025-03-10 17:12:47.638 | INFO     | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/version.json HTTP/1.1" 200 - {}
open-webui.matbee.com/:1  [Deprecation] -ms-high-contrast-adjust is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard.
manifest.json:1  Manifest: Line: 1, column: 1, Syntax error.
open-webui.matbee.com/:1  Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js
app.js:83  TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js
overrideMethod @ hook.js:608
handleError @ app.js:83
F @ client.js:1642
ie @ client.js:1030
await in ie
J @ client.js:1303
oe @ client.js:384
fn @ client.js:1756
vn @ client.js:311
await in vn
(anonymous) @ (index):130
Promise.then
(anonymous) @ (index):129
open-webui.matbee.com/:1  Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js
Loading module from “https://open-webui.matbee.com/_app/immutable/chunks/index.CQwy_pUe.js” was blocked because of a disallowed MIME type (“text/html”).
[open-webui.matbee.com](https://open-webui.matbee.com/)
Loading module from “https://open-webui.matbee.com/_app/immutable/chunks/preload-helper.C1FmrZbK.js” was blocked because of a disallowed MIME type (“text/html”).
[open-webui.matbee.com](https://open-webui.matbee.com/)
Uncaught (in promise) TypeError: error loading dynamically imported module: https://open-webui.matbee.com/_app/immutable/entry/start.DGQ-PK4v.js

Additional Information

No response

Originally created by @matbeedotcom on GitHub (Mar 10, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version Latest docker ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior Loads ### Actual Behavior Doesnt load ### Steps to Reproduce Run a reverse proxy Forward request ### Logs & Screenshots ``` (base) ➜ ~ sudo docker pull ghcr.io/open-webui/open-webui:main main: Pulling from open-webui/open-webui 7cf63256a31a: Already exists 183f0922284a: Already exists 5dbb3b698b72: Already exists 0c5ce2cb4ecc: Already exists 96d17593eba8: Already exists 4f4fb700ef54: Already exists 2671deb00349: Already exists f13d720819a1: Already exists 522e3f1759d3: Already exists d1f6a6db44f8: Pull complete b01de02d3356: Pull complete 8cdd02903e6c: Pull complete 5b6a8e7bce50: Pull complete a0e935071214: Pull complete 3439e32d8c2b: Pull complete Digest: sha256:fff3d8017355097556d7600aa84b46e28b221201ecda9f9191d2249a05b88fc3 Status: Downloaded newer image for ghcr.io/open-webui/open-webui:main ghcr.io/open-webui/open-webui:main ``` ``` (base) ➜ ~ sudo docker run -d --restart unless-stopped -p 3000:8080 -v ~/.open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:main f41c7553cf989984e2e25b728f4d37b02952530818a5b4a3786f1d1390e54058 (base) ➜ ~ sudo docker logs -f open-webui Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Generating WEBUI_SECRET_KEY Loading WEBUI_SECRET_KEY from .webui_secret_key /app/backend/open_webui /app/backend /app INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. INFO [open_webui.env] 'ENABLE_OLLAMA_API' loaded from the latest database entry INFO [open_webui.env] 'OLLAMA_BASE_URLS' loaded from the latest database entry INFO [open_webui.env] 'OLLAMA_API_CONFIGS' loaded from the latest database entry INFO [open_webui.env] 'ENABLE_OPENAI_API' loaded from the latest database entry INFO [open_webui.env] 'OPENAI_API_KEYS' loaded from the latest database entry INFO [open_webui.env] 'OPENAI_API_BASE_URLS' loaded from the latest database entry INFO [open_webui.env] 'OPENAI_API_CONFIGS' loaded from the latest database entry INFO [open_webui.env] 'ENABLE_SIGNUP' loaded from the latest database entry INFO [open_webui.env] 'DEFAULT_LOCALE' loaded from the latest database entry INFO [open_webui.env] 'DEFAULT_MODELS' loaded from the latest database entry INFO [open_webui.env] 'DEFAULT_PROMPT_SUGGESTIONS' loaded from the latest database entry INFO [open_webui.env] 'MODEL_ORDER_LIST' loaded from the latest database entry WARNI [open_webui.env] WARNING: CORS_ALLOW_ORIGIN IS SET TO '*' - NOT RECOMMENDED FOR PRODUCTION DEPLOYMENTS. INFO [open_webui.env] Embedding model set: sentence-transformers/all-MiniLM-L6-v2 WARNI [langchain_community.utils.user_agent] USER_AGENT environment variable not set, consider setting it to identify your requests. ██████╗ ██████╗ ███████╗███╗ ██╗ ██╗ ██╗███████╗██████╗ ██╗ ██╗██╗ ██╔═══██╗██╔══██╗██╔════╝████╗ ██║ ██║ ██║██╔════╝██╔══██╗���█║ ██║██║ ██║ ██║██████╔╝█████╗ ██╔██╗ ██║ ██║ █╗ ██║█████╗ ██████╔╝██║ ██║██║ ██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║ ██║███╗██║██╔══╝ ██╔══██╗██║ ██║██║ ╚██████╔╝██║ ███████╗██║ ╚████║ ╚███╔███╔╝███████╗██████╔╝╚██████╔╝██║ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝ v0.5.20 - building the best open-source AI user interface. https://github.com/open-webui/open-webui Fetching 30 files: 100%|██████████| 30/30 [00:00<00:00, 221530.14it/s] INFO: Started server process [1] INFO: Waiting for application startup. 2025-03-10 17:12:29.500 | INFO | open_webui.utils.logger:start_logger:140 - GLOBAL_LOG_LEVEL: INFO - {} 2025-03-10 17:12:47.255 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET / HTTP/1.1" 304 - {} 2025-03-10 17:12:47.479 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.BegOFQcc.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.510 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.Bzn_o8s1.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.521 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.DcmDifxE.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.521 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/AddConnectionModal.CULiiQLN.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.527 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Switch.CLaBGINu.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.533 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Help.BwQr8Rrb.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.537 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Selector.BdZaQ-lQ.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.538 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Drawer.DWdeYoCQ.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.538 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/ChevronDown.C_Siw547.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.539 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Messages.D-mnE1G1.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.541 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.JfCkWQoW.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.541 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/index.BVjymmPi.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.541 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/chunks/Markdown.BPgl9swE.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.544 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/immutable/nodes/7.IrpJjv-N.js HTTP/1.1" 200 - {} 2025-03-10 17:12:47.638 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 184.147.29.186:0 - "GET /_app/version.json HTTP/1.1" 200 - {} ``` ``` open-webui.matbee.com/:1 [Deprecation] -ms-high-contrast-adjust is in the process of being deprecated. Please see https://blogs.windows.com/msedgedev/2024/04/29/deprecating-ms-high-contrast/ for tips on updating to the new Forced Colors Mode standard. manifest.json:1 Manifest: Line: 1, column: 1, Syntax error. open-webui.matbee.com/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js app.js:83 TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js overrideMethod @ hook.js:608 handleError @ app.js:83 F @ client.js:1642 ie @ client.js:1030 await in ie J @ client.js:1303 oe @ client.js:384 fn @ client.js:1756 vn @ client.js:311 await in vn (anonymous) @ (index):130 Promise.then (anonymous) @ (index):129 open-webui.matbee.com/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: https://open-webui.matbee.com/_app/immutable/nodes/0.v7TTX_A1.js ``` ```firefox Loading module from “https://open-webui.matbee.com/_app/immutable/chunks/index.CQwy_pUe.js” was blocked because of a disallowed MIME type (“text/html”). [open-webui.matbee.com](https://open-webui.matbee.com/) Loading module from “https://open-webui.matbee.com/_app/immutable/chunks/preload-helper.C1FmrZbK.js” was blocked because of a disallowed MIME type (“text/html”). [open-webui.matbee.com](https://open-webui.matbee.com/) Uncaught (in promise) TypeError: error loading dynamically imported module: https://open-webui.matbee.com/_app/immutable/entry/start.DGQ-PK4v.js ``` ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 15:52:28 -06:00
Author
Owner

@francesco-carrella commented on GitHub (Mar 12, 2025):

Hello! I have this exact problem. Is there some other open issue about this or some info about the solution?

Thank you!

@francesco-carrella commented on GitHub (Mar 12, 2025): Hello! I have this exact problem. Is there some other open issue about this or some info about the solution? Thank you!
Author
Owner

@xellos866 commented on GitHub (May 20, 2025):

We have experienced a similar error and maybe our findings will also help someone:

After debugging, we have probably found a way to solve the error. It is likely a problem with the number of simultaneous connections from the reverse proxy (nginx) that are sometimes triggered when the login window is opened by the client.

In some cases, up to 150 parallel HTTP connections were being established, which exceeded the limits for parallel connections in our nginx reverse proxy (default was 100). As a result, some of the connections were cut off by nginx. This in turn caused the application not to initialize correctly and triggered the error message.

When reloading, only some of the connections are re-established, and it also seems that there is some short-term caching in Open WebUI itself, so that significantly fewer JS files are sometimes requested in parallel. Furthermore, the error only appeared on fast internet connections, meaning that when we throttled our own connection speed, the error reliably did not occur anymore.

We have now significantly increased the number of allowed parallel connections, and in our tests, we could no longer reproduce the error.

    nginx: {
        worker_connections: 200,
        extra_configs: {
            limit_conn: 'default 200'
        },
@xellos866 commented on GitHub (May 20, 2025): We have experienced a similar error and maybe our findings will also help someone: After debugging, we have probably found a way to solve the error. It is likely a problem with the number of simultaneous connections from the reverse proxy (nginx) that are sometimes triggered when the login window is opened by the client. In some cases, up to 150 parallel HTTP connections were being established, which exceeded the limits for parallel connections in our nginx reverse proxy (default was 100). As a result, some of the connections were cut off by nginx. This in turn caused the application not to initialize correctly and triggered the error message. When reloading, only some of the connections are re-established, and it also seems that there is some short-term caching in Open WebUI itself, so that significantly fewer JS files are sometimes requested in parallel. Furthermore, the error only appeared on fast internet connections, meaning that when we throttled our own connection speed, the error reliably did not occur anymore. We have now significantly increased the number of allowed parallel connections, and in our tests, we could no longer reproduce the error. ``` nginx: { worker_connections: 200, extra_configs: { limit_conn: 'default 200' }, ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4367