KeyError: 'html' when trying to pull #19

Open
opened 3 years ago by decentral1se · 1 comments
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

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.