matrix-org / matrix-org/matrix-js-sdk
Error : WebAssembly.instantiate(): expected magic word
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
Does someone experience this error when enabling E2E ?
CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0
Client parameters :
`const client = sdk.createClient({
baseUrl: "https://awsmatrixx.ml",
accessToken: UserData.loginData.access_token,
deviceId : UserData.loginData.device_id,
userId : UserData.loginData.user_id,
timelineSupport: true,
sessionStore: new sdk.WebStorageSessionStore(window.localStorage),
cryptoStore: new sdk.MemoryCryptoStore()
});`
And start client by this :
`client
.initCrypto()
.then(async () => await client.startClient({ initialSyncLimit: 1 }))
.catch((err) => {
console.error('err', err);
});`
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the E2E-enabled client initialization sequence shown in the issue: sdk.createClient(...), initCrypto(), and startClient({ initialSyncLimit: 1}). Reproduce the WebAssembly.instantiate error and trace the resource producing the reported HTML bytes instead of the WebAssembly magic word; done means initialization completes without this CompileError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, wasm
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100