element-hq / element-hq/chatterbox
Attempting to connect via http on an external connection causes crash
- Dominant language
- TypeScript
- Stars
- 181
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When running the chatterbox client on my web browser to connect to the homeserver - using my networks IP (192.168.0.X) - the CB client crashes when loading up. The error message valid in the Chrome Inspect panel is:
`VM42 main.ts:104 TypeError: Cannot read properties of undefined (reading 'deriveBits')
at new Crypto (VM46 hydrogen-view-sdk.js:8749:23)
at new Platform (VM46 hydrogen-view-sdk.js:9774:21)
at main (VM42 main.ts:57:20)`
`VM46 hydrogen-view-sdk.js:8749 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deriveBits')
at new Crypto (VM46 hydrogen-view-sdk.js:8749:23)
at new Platform (VM46 hydrogen-view-sdk.js:9774:21)
at main (VM42 main.ts:57:20)`
**To Reproduce**
Steps to reproduce the behavior:
1. Follow installation steps outlined in the readme
2. Adjust config.json
3. Connect to server IP
4. Error visible in the Chrome Inspect Console
**Expected behavior**
Chatterbox client should open up as normal - this works when connecting to localhost
**Desktop (please complete the following information):**
- Browser: Chrome
- Version: 121.0.6167.139
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the crash in Chrome using the installation steps, config.json, localhost, and the LAN IP. Inspect main.ts around line 57 and the reported hydrogen-view-sdk.js location at line 8749, then compare the browser console results. Done means the client opens normally when connecting to the external server IP without the deriveBits error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, security, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100