Skip to content

TypeError: this.onerror is not a function onconnect/<@https://***.***.pl/zm/js/video-rtc.js:308:56 #5025

Description

@atlochowski

Describe Your Environment

  • Version of ZoneMinder [1.39.18]

  • Debian 13

  • Browser name and version Firefox

Describe the bug
TypeError: this.onerror is not a function
TypeError: this.onerror is not a function onconnect/<@https:/***********/zm/js/video-rtc.js:308:56

Line 308:
this.ws.addEventListener('error', (ev) => this.onerror(ev));

So object RTCVideo didnt' have defined function onerror()

To Reproduce

  1. If you don't make reverseproxy for websockets you will see error like this and it looks like a bug in the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions