Skip to content

[bug] Enabling anonymous access crashes the web UI #1308

@gripssg

Description

@gripssg

Describe the bug

Under Settings - Access, when enabling the "Enable anonymous access" option, the web interface becomes unavailable.

Docker compose logs shows this error repeatedly:

sourcebot   | [web] | No valid user agent string was provided
sourcebot   | [web] | ⨯ TypeError: Cannot destructure property 'isMobile' of '(0 , k.getSelectorsByUserAgent)(...)' as it is undefined.
sourcebot   | [web] |     at O (.next/server/chunks/ssr/_0b09yml._.js:2:90577) {
sourcebot   | [web] |   digest: '3394150132'

To reproduce

Setup sourcebot using docker-compose.
Modified ports for the sourcebot container to be "127.0.0.1:3002:3000" instead of "3000:3000".

The config.json file contains a single connection to a self hosted Gitlab instance.

To get it back and running again I need to rebuild from scratch.

Sourcebot deployment information

Sourcebot version: v5.0.2

Additional information

I'm using HAproxy on port 80/443 to proxy connections and for SSL termination.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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