Skip to content

Sometimes get an error on first load in Firefox #32

Description

@haukex

In Firefox, after clearing the cache and re-loading the dictionary for the first time, I sometimes get a "The dictionary failed to load!" error:

$Id: 214f5c345c91b2dcccfb13fcd3e470404fbe7221 $
TypeError: The input data is corrupted: incorrect header check

or

$Id: 214f5c345c91b2dcccfb13fcd3e470404fbe7221 $
TypeError: The input is ended without reaching the stream end

and the console shows:

https://ftp.tu-chemnitz.de/pub/Local/urz/ding/de-en-devel/de-en.txt.gz cors 200 OK [worker.8ab956e8.js:1:3751](https://dict.zero-g.net/worker.8ab956e8.js)
ProgressTransformer expected 8682926 but got 0

A reload fixes the issue.

I suspect a bug in Firefox rather than the app, but I could take a closer look at it.

Edit: According to the network trace, Firefox is sending Range: bytes=1542415- and If-Range: "847dae-62305d44eb300" headers and the server is responding with 206 Partial Content, could that be the cause?

Edit 2: I'm now also sometimes getting errors in Firefox that the tab has crashed, which feels to me to confirm a bug in Firefox. Still looking for a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions