Unhandled error detected in the injected client.js script.
- Dominant language
- Dart
- Stars
- 224
- Forks
- 94
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 2
Description
Unhandled error detected in the injected client.js script.
You can disable this script in webdev by passing --no-injected-client if it
is preventing your app from loading, but note that this will also prevent
all debugging and hot reload/restart functionality from working.
The original error is below, please file an issue at
https://github.com/dart-lang/webdev/issues/new and attach this output:
WebSocketChannelException: SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS
Contributor guide
Research direction
Start with the injected client.js script and the --no-injected-client entry point, using the reported WebSocketChannelException on an HTTPS-loaded page as the reproduction. Trace the WebSocket setup and define done as allowing the app to load while preserving debugging and hot reload/restart functionality without the security error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, javascript
- Domain
- cli, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100