Closed shamoon closed 9 months ago
Having the same issue
Thank you!
Same (undocumented breaking change?) also happens with status 419
when upgrading from 1.41.0 -> 1.42.1
Same issue with 1.42.1
The same issue with 440 status code when using 1.42.1
Version
v1.41.0-v1.41.2
Steps to reproduce
Hi there, first of all thanks to you all for the amazing tool.
Im a little unclear if the following was either an unintended breaking change or if Im missing something but a dependabot update from 1.40.1 --> 1.41.2 suddenly caused test failures on our project, see https://github.com/paperless-ngx/paperless-ngx/actions/runs/7748673176/job/21131798824?pr=5634 which fails with
Error: Protocol error (Fetch.fulfillRequest): Invalid http status code or phrase
As best I can tell this comes down to us using .HAR files that have some requests that I think get canceled in the course of running tests (e.g. navigating around the app quickly) and the
status
is recorded as-1
andstatusText: ""
. This was of course working until the update, specifically I localized it to 1.41.0 but as above its still the case in 1.41.2I tried re-recoding the HAR files but get the same thing. I'm not totally clear which part here is incorrect (if
status = -1
is invalid should the HAR recording ever generate that?). I can of course update the .HAR to return 200 or whatever but the question is just whether this is a bug vs. expected now (and if so should probably be noted somewhere, sorry if it is and I missed it).Again, see the CI run above but an example is a simple test like:
And a .HAR file with a bunch of requests but at least one like:
Expected behavior
Existing tests that use a .HAR with
status: -1
/statusText: ""
dont failActual behavior
Previously-working tests that use a .HAR with
status: -1
/statusText: ""
now fail withError: Protocol error (Fetch.fulfillRequest): Invalid http status code or phrase
Additional context
Thank you for the awesome project!
Environment