Skip to content

bug: WebSocket connection fails and reconnects on app startup (Windows Desktop App) #402

@Bas1874

Description

@Bas1874

Checklist

  • My version of the app is the latest available
  • I have checked open and closed issues
  • I have checked the docs for a fix

Bug Severity

Usability is affected

Bug Area

Desktop app

Bug Description / Steps to Reproduce

  1. Launch the Seanime desktop a[[ on Windows.
  2. Look at the logs upon startup.
  3. The app fails to maintain a WebSocket connection, showing by the log message: [WebsocketProvider] No pong response for 46s, reconnecting.
  4. The WebSocket connection closes with code 1005 and attempts to reconnect after a short delay.
  5. This issue occurs consistently on the first launch of the desktop app. The web version of the application does not have this issue.

Expected Behavior

Seanime desktop app should connect and maintain a stable WebSocket connection on startup without disconnecting and forcing a reconnection.

Screenshots

No response

Logs

2025-08-19 20:02:06 TRC - method=GET status=200 uri=/api/v1/library/collection latency_human=2.603ms
2025-08-19 20:02:06 TRC - notifier > Pushed notification: Auto Scanner
[WebsocketProvider] No pong response for 46s, reconnecting
[WebsocketProvider] Reconnecting in 1000ms (attempt 1)
[WebsocketProvider] WebSocket connection closed: 1005
[WebsocketProvider] Reconnecting in 2000ms (attempt 2)
2025-08-19 20:02:49 DBG - ws > Client disconnection id=be41dd9e-c72e-481a-afcb-700f6a3fd0b6
2025-08-19 20:02:51 DBG - ws > Client connected id=be41dd9e-c72e-481a-afcb-700f6a3fd0b6
[WebsocketProvider] WebSocket connection opened

Debugging Checklist

  • I have included error messages
  • I have included server logs
  • I have included browser console logs

App Version

V2.9.6

Operating System

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions