Skip to content

ERR_CONTENT_DECODING_FAILED for wasm.wasm when Chrome doesn't accept 'br' compression #28

@heisencoder

Description

@heisencoder

I'm having trouble getting this server to properly run when connecting via a separate computer.

In particular, if I run this command (with my computer's IP address on the local network):

WASM_SERVER_RUNNER_ADDRESS=192.168.68.107 cargo run --release
or
WASM_SERVER_RUNNER_ADDRESS=0.0.0.0 cargo run --release

and then try to connect at http://192.168.68.107:1334/, the wasm.wasm file fails to load.

In looking at my network traffic (Chrome 107.0.5304.68 running on Ubuntu Linux 22.04), I see that these loads work correctly with status code 200:

However, when loading http://192.168.68.107:1334/api/wasm.wasm, I get no response.

Note that when I change WASM_SERVER_RUNNER_ADDRESS to something like 0.0.0.0 or 127.0.0.1, then visiting 127.0.0.1 does allow wasm.wasm to correctly load. However, attempting to load via the server's IP address fails.

(This is needed for me to load from a different computer on the LAN, since the other computer can't use 127.0.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions