Skip to content

A descriptive error for uninitialized nodes #55

@kvkarandashev

Description

@kvkarandashev

I got this error while attempting to pull a tag from hummingqueue:

  File "/home/konstantin/miniconda3/envs/python311/lib/python3.11/site-packages/hmq/hmq.py", line 763, in from_queue
    total = api.get_tag_status(tag)["total"]
            ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/konstantin/miniconda3/envs/python311/lib/python3.11/site-packages/hmq/hmq.py", line 499, in get_tag_status
    "challenge": self._get_challenge(),
                 ^^^^^^^^^^^^^^^^^^^^^
  File "/home/konstantin/miniconda3/envs/python311/lib/python3.11/site-packages/hmq/hmq.py", line 652, in _get_challenge
    self._build_box()
  File "/home/konstantin/miniconda3/envs/python311/lib/python3.11/site-packages/hmq/hmq.py", line 233, in _build_box
    self._url = self._clean_instance(config["server"]["url"])
                                     ~~~~~~^^^^^^^^^^
  File "/home/konstantin/miniconda3/envs/python311/lib/python3.11/configparser.py", line 979, in __getitem__
    raise KeyError(key)
KeyError: 'server'

Jan later explained to me I should copy the ~/.hummingqueue folder to the uninitialized node, and I think it would be better if the instruction appeared somewhere as a result of a failed assert.

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