Question: WebSocket connection to 'ws://0.0.0.0:9000/ws' failed: #229

Closed
opened 2026-10-05 02:35:00 +02:00 by adam · 4 comments
Owner

Describe the bug
I run this extension locally, find that error message:

image

To Reproduce
Steps to reproduce the behavior:

  1. clone this project
  2. npm install
  3. npm run dev:ext
  4. attach Extension
  5. Open Dashboard
  6. Open devtools to see this error message

Expected behavior

No error message.

Desktop (please complete the following information):

  • OS: MacOS 12.2.1
  • VSCode: 1.66.0-insider
**Describe the bug** I run this extension locally, find that error message: <img width="1440" alt="image" src="https://user-images.githubusercontent.com/41773861/158229222-a6840ef1-c2f5-4b89-9b21-cefc7e6cc73a.png"> **To Reproduce** Steps to reproduce the behavior: 1. clone this project 2. `npm install` 3. `npm run dev:ext` 4. `attach Extension` 5. Open Dashboard 6. Open devtools to see this error message **Expected behavior** No error message. **Desktop (please complete the following information):** - OS: MacOS 12.2.1 - VSCode: 1.66.0-insider <!-- github-sync-id:1168704769 -->
adam closed this issue 2026-10-05 02:35:00 +02:00
Author
Owner

Hi @tjx666, it seems there went something wrong in the webpack devserver. In your console log, the first visible line says: [webpack-dev-server]: Disconnected!. This is why you see the connection issues, as it is not running anymore. The best is to validate why the server got disconnected. Might be something is blocking the dev server, or that some code broke it, or you stopped the local dev:ext command.

Hi @tjx666, it seems there went something wrong in the webpack devserver. In your console log, the first visible line says: `[webpack-dev-server]: Disconnected!`. This is why you see the connection issues, as it is not running anymore. The best is to validate why the server got disconnected. Might be something is blocking the dev server, or that some code broke it, or you stopped the local dev:ext command. <!-- github-comment-id:1067118288 -->
Author
Owner

Hi, I have my own extension occur another problem with config vscode webview and webpack.

Any idea about following problem?

image
Hi, I have my own extension occur another problem with config vscode webview and webpack. Any idea about following problem? <img width="1440" alt="image" src="https://user-images.githubusercontent.com/41773861/158233227-47489b5d-1e55-41f0-aa13-509332984c21.png"> <!-- github-comment-id:1067125453 -->
Author
Owner
I config it like you describle in your blog: https://github.com/tjx666/scripting-listener/blob/master/src/LogViewer.ts#L63 <!-- github-comment-id:1067126020 -->
Author
Owner

Reproduce steps:

  1. clone https://github.com/tjx666/scripting-listener
  2. npm install
  3. npm run start-web
  4. VSCode debug panel click Run Extension
  5. In opend test-workspace, call command Open Scripting Listener Viewer
  6. open devtools
Reproduce steps: 1. clone https://github.com/tjx666/scripting-listener 2. `npm install` 3. `npm run start-web` 4. VSCode debug panel click `Run Extension` 5. In opend test-workspace, call command `Open Scripting Listener Viewer` 6. open devtools <!-- github-comment-id:1067130618 -->
adam changed title from Question: WebSocket connection to 'ws://0.0.0.0:9000/ws' failed: to Question: WebSocket connection to 'ws://0.0.0.0:9000/ws' failed: 2026-10-27 13:11:46 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#229