home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.63k stars 30.78k forks source link

urllib3 #70051

Closed gigideveloper closed 2 years ago

gigideveloper commented 2 years ago

Describe the issue you are experiencing

Hi, i have a problem with urllib3. I see their user guide, but i don't understand how to fix the problem. Below i report of HA. Thanks for the help.

Logger: py.warnings Source: /usr/local/lib/python3.9/warnings.py:109 First occurred: 12:10:48 (10 occurrences) Last logged: 12:11:52

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

What is the used version of the Supervisor?

supervisor-2022.04.0

What type of installation are you running?

Home Assistant OS

Which operating system are you running on?

Home Assistant Operating System

What is the version of your installed operating system?

5.10.108

What version of Home Assistant Core is installed?

core-2022.4.3

Steps to reproduce the issue

  1. i read in the log the issue
  2. ...

Anything in the Supervisor logs that might be useful for us?

Logger: py.warnings
Source: /usr/local/lib/python3.9/warnings.py:109
First occurred: 12:10:48 (124 occurrences)
Last logged: 12:40:22

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

Additional information

No response

mdegat01 commented 2 years ago

That's not the supervisor log. The supervisor log is here, you're showing something from the section at the top of core logs.

I'll transfer this to core but you're going to need to provide more information. 192.168.1.87 is a LAN URL, it's something on your network. Which means the only way Home Assistant would reach out to it is if you put it somewhere in your config. Maybe start by searching your config to see where that IP Address is referenced and share that config? Then people will be able to help.

thecode commented 2 years ago

Can you list the custom integrations you are using?

gigideveloper commented 2 years ago

Hi, I use this custom integrations: -Alexa Media; -SmartIR; -HACS; -Tapo Sorry if I didn't answer your question correctly

thecode commented 2 years ago

What device is using the IP 192.168.1.87?

gigideveloper commented 2 years ago

Qnap NAS

gigideveloper commented 2 years ago

I have hass OS on Virtualization station on Qnap NAS

chemelli74 commented 2 years ago

Code needs to be updated with:

# disable InsecureRequestWarning from urllib3
# because of skipping certificate verification:
import urllib3

urllib3.disable_warnings()

Simone

gigideveloper commented 2 years ago

Code needs to be updated with:


# disable InsecureRequestWarning from urllib3

# because of skipping certificate verification:

import urllib3

urllib3.disable_warnings()

Simone

can you explain me how could do it from home assistant?