KeyError: 'html' when trying to pull #19

Open
opened 2021-03-17 22:06:27 +01:00 by decentral1se · 1 comment
Owner

While trying to reproduce #18 I ran into this. Using a fresh etherpad instance (see https://git.vvvvvvaria.org/varia/etherpump#testing) and a single pad. Once I pass --all first, it then downloads everything. After this, using only --magicwords- does not fail.

➜  etherpump (main) ✗ poetry run etherpump pull --magicwords 
===============================================================================
Etherpump is warming up the engines ...
===============================================================================
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/decentral1se/work/etherpump/etherpump/__init__.py", line 93, in main
    cmdmod.main(args)
  File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 579, in main
    trio.run(handle_pads, args)
  File "/home/decentral1se/.cache/pypoetry/virtualenvs/etherpump-edQNCuEO-py3.9/lib/python3.9/site-packages/trio/_core/_run.py", line 1928, in run
    raise runner.main_task_outcome.error
  File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 561, in handle_pads
    nursery.start_soon(
  File "/home/decentral1se/.cache/pypoetry/virtualenvs/etherpump-edQNCuEO-py3.9/lib/python3.9/site-packages/trio/_core/_run.py", line 815, in __aexit__
    raise combined_error_from_nursery
  File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 498, in handle_pad
    html_body = html["data"]["html"]
KeyError: 'html'
While trying to reproduce https://git.vvvvvvaria.org/varia/etherpump/issues/18 I ran into this. Using a fresh etherpad instance (see https://git.vvvvvvaria.org/varia/etherpump#testing) and a single pad. Once I pass `--all` first, it then downloads everything. After this, using only `--magicwords-` does not fail. ``` ➜ etherpump (main) ✗ poetry run etherpump pull --magicwords =============================================================================== Etherpump is warming up the engines ... =============================================================================== Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/decentral1se/work/etherpump/etherpump/__init__.py", line 93, in main cmdmod.main(args) File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 579, in main trio.run(handle_pads, args) File "/home/decentral1se/.cache/pypoetry/virtualenvs/etherpump-edQNCuEO-py3.9/lib/python3.9/site-packages/trio/_core/_run.py", line 1928, in run raise runner.main_task_outcome.error File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 561, in handle_pads nursery.start_soon( File "/home/decentral1se/.cache/pypoetry/virtualenvs/etherpump-edQNCuEO-py3.9/lib/python3.9/site-packages/trio/_core/_run.py", line 815, in __aexit__ raise combined_error_from_nursery File "/home/decentral1se/work/etherpump/etherpump/commands/pull.py", line 498, in handle_pad html_body = html["data"]["html"] KeyError: 'html' ```

This happened to me too, yeah. No idea what the cause is.

This happened to me too, yeah. No idea what the cause is.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: varia/etherpump#19
No description provided.