Skip to content

hoardy-web serve fails to parse a submitted WRR, the extension stops archiving as the result #20

Description

@danilbraun

The extension stopped archiving reqres, the server prints the following errors:

127.0.0.1 - - [22/Jul/2025 01:12:36] "POST /pwebarc/dump?profile=default HTTP/1.
1" 400 101
127.0.0.1 - - [22/Jul/2025 01:12:39] "GET /hoardy-web/server-info HTTP/1.1" 200
176
Traceback (most recent call last):
  File "C:\Users\Danil\AppData\Local\Programs\Python\Python313\Lib\site-packages
\hoardy_web\__main__.py", line 2744, in dump_wrr
    reqres = wrr_load_cbor_fileobj(cborf)
  File "C:\Users\Danil\AppData\Local\Programs\Python\Python313\Lib\site-packages
\hoardy_web\wrr.py", line 338, in wrr_load_cbor_fileobj
    struct = _cbor2.load(fobj)
_cbor2.CBORDecodeEOF: premature end of stream (expected to read -1 bytes, got 28
5060 instead)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Danil\AppData\Local\Programs\Python\Python313\Lib\site-packages
\hoardy_web\__main__.py", line 2572, in decorated
    return func(*args, **kwargs)
  File "C:\Users\Danil\AppData\Local\Programs\Python\Python313\Lib\site-packages
\hoardy_web\__main__.py", line 2748, in dump_wrr
    raise Failure("failed to parse content body: %s", str(exc)) from exc
kisstdlib.failure.Failure: failed to parse content body: premature end of stream
 (expected to read -1 bytes, got 285060 instead)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions