Skip to content

WebUI search returns no results when localhost resolves to IPv6 #1062

@junhaoliao

Description

@junhaoliao

(issue originally reported by @haiqi96 ; @davemarco helped investigated)

Bug

Search queries through the WebUI consistently return no results. When investigating the network traffic, the search endpoint returns the React app's index.html content instead of the expected socket.io responses. This issue appears to be related to localhost resolving to IPv6 addresses on affected systems.

CLP version

3520895

Environment

Windows 11 + Windows Docker Engine
The package was running in WSL Ubuntu Jammy

Reproduction steps

  1. Start the package with default settings and compress sample logs.
  2. Navigate to http://localhost:4000/search in a web browser
  3. Perform a search using any query string (e.g., "*")
  4. Observe that no search results are returned
  5. Open browser developer tools and check the Network tab
  6. Notice that the search request returns index.html content instead of socket.io responses
  7. Verify that this occurs on systems where localhost resolves to IPv6 addresses

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions