python-qnapstats icon indicating copy to clipboard operation
python-qnapstats copied to clipboard

InsecureRequestWarning logs spam

Open max2697 opened this issue 6 months ago • 0 comments

Device Model Number: TS-251D

QTS Version: 5.1.7

Hello, I am using QNAP HA integration with my TS-251D (SSL: false, verify SSL: false, port 8080), and I am seeing hundreds and thousands of warnings in the Home Assistant logs, such as:

/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py:1063: InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.x.x'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings warnings.warn(

What do you think about using requests.packages.urllib3.disable_warnings() when SSL and verify SSL are set to false?

max2697 avatar Aug 23 '24 02:08 max2697