Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm files are not loaded on Firefox due to wrong Content-Type #104

Open
jpastuszek opened this issue Jan 21, 2023 · 1 comment
Open

wasm files are not loaded on Firefox due to wrong Content-Type #104

jpastuszek opened this issue Jan 21, 2023 · 1 comment

Comments

@jpastuszek
Copy link

Describe the bug

On Firefox I get an error in JS console:

wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type 'application/octet-stream' expected 'application/wasm'

This is in relation for request to /libs/olm.wasm.

With out this WASM compiled the performance is so low that video does not work and client gets "Connection: poor" even thought there is plenty of bandwidth available.

Context

  • Hardware: VM on home server (Dell PC)
  • YunoHost version: 11.0.11
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: yes
    • If yes, please explain: It is behind Caddy, and I work around the issue there, direct request still gives wrong Content-Type.
  • Using, or trying to install package version/branch: 2.0.8138~ynh1

Steps to reproduce

  1. Go to Jitsi Meet
  2. Start a conference
  3. Check JS console output for
wasm streaming compile failed: TypeError: WebAssembly: Response has unsupported MIME type 'application/octet-stream' expected 'application/wasm'

OR

curl https://example.com/libs/olm.wasm -v

If you get this there is a problem:

< content-type: application/octet-stream

Expected behavior

No error, video working and curl request giving:

< content-type: application/wasm
@yalh76
Copy link
Member

yalh76 commented Jan 25, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants