Skip to content

[BUG] JavaScript error breaking the web UI #378

@ScootCentre

Description

@ScootCentre

Hello OxiCloud maintainers — I found a JavaScript error breaking the web UI: "Uncaught SyntaxError: redeclaration of let REFRESH_ENDPOINT" in app.d3a9299baffa7699.js. I inspected the page and only one script tag loads the bundle, but the bundle contains multiple declarations of REFRESH_ENDPOINT. Please change the declaration to attach to window to avoid redeclaration errors, for example:

window.API_URL = window.API_URL || /api/auth;
window.LOGIN_ENDPOINT = window.LOGIN_ENDPOINT || ${window.API_URL}/login;
window.REGISTER_ENDPOINT = window.REGISTER_ENDPOINT || ${window.API_URL}/register;
window.ME_ENDPOINT = window.ME_ENDPOINT || ${window.API_URL}/me;
window.REFRESH_ENDPOINT = window.REFRESH_ENDPOINT || ${window.API_URL}/refresh;
window.USER_DATA_KEY = window.USER_DATA_KEY || oxiclo;

I’ve attached the page HTML (oxicloud_page.html) and the JS snippet (app_snippet.txt) showing the problematic lines. The error prevents event handlers from binding, so UI actions like the UN icon do nothing. Please advise or provide a patched release. Thanks.

A clear and concise description of what the bug is.

WebUI opens after login but clicking on UN icon fails to open settings, so cannot proceed

Steps to reproduce the behavior:

  1. Go to 'WebUI landing page'
  2. Click on 'UN' top right
  3. Scroll down to 'xx '
  4. See error

A clear and concise description of what you expected to happen.

Settings should open on UN click

Screenshots

oxicloud_page.html

app_snippet.txt

If applicable, add screenshots to help explain your problem.

Environment

  • OS: UGreen DPX2800 NAS — UGOS (Debian-based)
    /etc/os-release output: PRETTY_NAME="Debian GNU/Linux 12 (bookworm)", VERSION_ID="12"
    OS-specific build: OS_VERSION=1.15.1.0127
    Kernel: Linux Treehouse 6.12.30+ adding several features #1 SMP PREEMPT_DYNAMIC Thu Apr 30 14:07:57 UTC 2026 x86_64 GNU/Linux

  • Browser: [tested on pc running windows 11 v25H2 Security Update (KB5089549) (26200.8457) with browsers:-Firefox 150.0.3 (64-bit), and Brave 1.90.122 (0fficial build) (64-bit) and on iPad running iOS 26.4.2 with browsers: Firefox 140.3 (71664), DuckDuckGo v7.219.0.3 and Safari v26.4 - same results on every test

  • OxiCloud Version: (oxicloud-custom:latest) (postgres:18.2-alpine3.23)

  • Rust Version: N/A (rustc not installed; bash: rustc: command not found)

Additional Context

Add any other context about the problem here.

Possible Solution

If you have ideas on how to fix the issue, please describe them here.

Getting OxiCloud running and syncing to my Windows PC, my Android phone and my iOS iPad is the final step in establishing core functionality in my first NAS. Any assistance would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions