[GH-ISSUE #164] InsecureRequestWarning #87

Closed
opened 2026-02-27 15:46:21 +03:00 by kerem · 5 comments
Owner

Originally created by @FrancoTampieri on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/164

Originally assigned to: @jhollowe on GitHub.

Python 3.12.3
proxmoxer 2.0.1

Even I put in the connection string the verify_ssl=False the error is everytime rased.

Can u take a look?

Originally created by @FrancoTampieri on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/164 Originally assigned to: @jhollowe on GitHub. Python 3.12.3 proxmoxer 2.0.1 Even I put in the connection string the verify_ssl=False the error is everytime rased. Can u take a look?
kerem 2026-02-27 15:46:21 +03:00
Author
Owner

@jhollowe commented on GitHub (Apr 27, 2024):

Based on the urllib3 docs, you can use the following to disable these warnings:

from urllib3 import disable_warnings
from urllib3.exceptions import InsecureRequestWarning
disable_warnings(InsecureRequestWarning)

or just

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

This warning comes from (recent versions of) the libraries used for making HTTPS connections and can't be changed within proxmoxer.

<!-- gh-comment-id:2080269043 --> @jhollowe commented on GitHub (Apr 27, 2024): Based on the [urllib3 docs](https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings), you can use the following to disable these warnings: ```python from urllib3 import disable_warnings from urllib3.exceptions import InsecureRequestWarning disable_warnings(InsecureRequestWarning) ``` or just ```python import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) ``` This warning comes from (recent versions of) the libraries used for making HTTPS connections and can't be changed within proxmoxer.
Author
Owner

@FrancoTampieri commented on GitHub (Apr 27, 2024):

Thank you that's works like a charm!

Did u consider to switch from requests to https? I did the switch in some project and was very nice, and I can use it with asyncio.

Regards

Franco

<!-- gh-comment-id:2080404858 --> @FrancoTampieri commented on GitHub (Apr 27, 2024): Thank you that's works like a charm! Did u consider to switch from requests to https? I did the switch in some project and was very nice, and I can use it with asyncio. Regards Franco
Author
Owner

@jhollowe commented on GitHub (May 1, 2024):

What library is that? do you have a link to it?

<!-- gh-comment-id:2087869326 --> @jhollowe commented on GitHub (May 1, 2024): What library is that? do you have a link to it?
Author
Owner

@FrancoTampieri commented on GitHub (May 7, 2024):

Sure, is that library:
https://www.python-httpx.org

Kind regards

<!-- gh-comment-id:2097491965 --> @FrancoTampieri commented on GitHub (May 7, 2024): Sure, is that library: https://www.python-httpx.org Kind regards
Author
Owner

@jhollowe commented on GitHub (May 8, 2024):

Interesting. Considering all the requests-specific code we have in the app and in the test suite, I think we will stick with requests for now. But this is a very cool project and if it becomes more broadly supported we may consider switching to it.

<!-- gh-comment-id:2099671254 --> @jhollowe commented on GitHub (May 8, 2024): Interesting. Considering all the `requests`-specific code we have in the app and in the test suite, I think we will stick with `requests` for now. But this is a very cool project and if it becomes more broadly supported we may consider switching to it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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
starred/proxmoxer#87
No description provided.