Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if pve_node is online before making further requests #4

Merged
merged 1 commit into from Oct 31, 2023

Conversation

flybyray
Copy link
Contributor

Otherwise there might be errors like

Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "~/.venvs/proxmoxbmc/lib/python3.11/site-packages/proxmoxer/core.py", line 143, in get
    return self(args)._request("GET", params=params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.venvs/proxmoxbmc/lib/python3.11/site-packages/proxmoxer/core.py", line 123, in _request
    raise ResourceException(
proxmoxer.core.ResourceException: 595 Errors during connection establishment, proxy handshake: No route to host - {'errors': b''}

Otherwise there might be errors like 

```txt
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "~/.venvs/proxmoxbmc/lib/python3.11/site-packages/proxmoxer/core.py", line 143, in get
    return self(args)._request("GET", params=params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/.venvs/proxmoxbmc/lib/python3.11/site-packages/proxmoxer/core.py", line 123, in _request
    raise ResourceException(
proxmoxer.core.ResourceException: 595 Errors during connection establishment, proxy handshake: No route to host - {'errors': b''}
```
Copy link
Owner

@agnon agnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@agnon agnon merged commit 2bbe0a9 into agnon:main Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants