exercism / exercism/website

InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.

Open
#9,467 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
548
Forks
168
Avg merge
1d 3h
Merged PRs (30d)
28

Description

## Error

```
Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
```

## Stack trace

```
/asset/asset.js:2 in e.WebsocketManager.send
/asset/asset.js:2 in e.EntityManager.flush
/asset/asset.js:2 in e.EntityManager.deactivateEntityAtKey
/asset/asset.js:2 in e.EntityManager.onLocationChange
../node_modules/@sentry/browser/src/helpers.ts:117 in sentryWrapped
/asset/asset.js:2 in History.pushState
../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js:2291 in History.update
../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js:3619 in FrameController.changeHistory
../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js:3559 in FrameController.loadFrameResponse
../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js:3442 in FrameController.loadResponse
```

## Tracking Details
- **Project**: exercism-js
- **Sentry**: [InvalidStateError: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.](https://thalamus-ai.sentry.io/issues/144962850/)
- **Culprit**: e.WebsocketManager.send(asset/asset)
- **First seen:** Sep 4, 2026

Contributor guide

Open the contributing guide

Research direction

Start with the Sentry report and the minified asset/asset.js stack trace, especially WebsocketManager.send and EntityManager.flush during Turbo navigation. Trace how the WebSocket reaches send while still connecting and identify the relevant source and reproduction path. Done means the reported error no longer occurs during the affected history or frame navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.