Skip to content

Uncaught TypeError with Basic Auth: clipTimeline.getZoomScaler() undefined #186

@lngarrett

Description

@lngarrett

When using UI3 with Basic Authentication (instead of secure session tokens/form login), when returning to a browser tab after an extended period (several hours) the following error occurs intermittently. This is also usually accompanied by the UI hanging at "Checking Session Status".

For context, I use basic auth in order to properly integrate BI with a forward auth proxy. However, the issue occurs even when I directly connect to BI, bypassing the proxy.

Uncaught TypeError: Cannot read properties of undefined (reading 'toFixed')
at https://[hostname]/ui3/ui3.js?v=277-5.9.9.3 [1452:132]

Environment

  • Blue Iris Version: 5.9.9.3
  • UI3 Version: 277
  • Authentication Method: Basic Auth
  • Browser: Chrome 130.0.0.0 (Mobile), as well as Firefox desktop.
  • OS: Android 14 as well as Windows 11

Steps to Reproduce

  1. Configure UI3 to use Basic Authentication
  2. Load UI3 interface
  3. Error occurs intermittently when accessing timeline features

Other Observations

  • Issue only occurs with Basic Auth, not with secure session tokens/form login.
  • Error is intermittent, suggesting possible race condition in initialization.
  • Full browser refresh (CTRL + F5) temporarily resolves the issue, sometimes it takes a few refreshes.

Code Location

The error occurs in the timeline zoom scale settings comment function:

{
    key: "ui3_timeline_currentZoomScaleComment",
    value: "",
    inputType: "comment",
    comment: function () { 
        return 'Current Zoom Scale: <span id="timelineCurrentZoomScaleComment">' + 
               clipTimeline.getZoomScaler().toFixed(1) + '</span>'; 
    },
    category: "Timeline"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions