Skip to content

Wokwi CLI API Error: WebSocket connection closed unexpectedly (code 1006) during CI #28

Open
@forntoh

Description

@forntoh

I am consistently encountering a failure in one specific CI job that runs the Wokwi CLI in my GitHub Actions workflow. The job fails with the following error:

API Error: Connection to wss://wokwi.com/api/ws/beta closed unexpectedly: code 1006

All other jobs in the same workflow pass, and the failure is not related to my code, as the compilation and other steps succeed.

Steps to Reproduce:

  1. Use the Wokwi CLI in a GitHub Actions workflow.
  2. Run the simulation step as part of the CI.
  3. Observe the following error in the logs:
    API Error: Connection to wss://wokwi.com/api/ws/beta closed unexpectedly: code 1006
    

Expected Behavior:

The Wokwi simulation should run to completion and the CLI should exit normally.

Actual Behavior:

The simulation fails with a WebSocket code 1006, causing the process to exit with code 1.

Repository & Logs:

Additional Info:

  • Wokwi CLI version: v0.16.0 (ff220a4)
  • Runner: ubuntu-latest
  • The error only affects this job; all other jobs using similar workflows pass.

Please advise on how to resolve this persistent connectivity issue.

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