You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTPSConnectionPool(host='servicodados.ibge.gov.br', port=443): Max retries exceeded with url: /api/v1/localidades/municipios (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
#7
Open
MathewsJosh opened this issue
May 15, 2024
· 1 comment
Primeiramente, gostaria de expressar meu agradecimento pela sua dedicação ao criar essa biblioteca. Ela tem sido extremamente útil e acelerou significativamente o desenvolvimento de um projeto pessoal meu.
Infelizmente, hoje me deparei com alguns erros ao executar a minha aplicação dentro de um container Docker que importa sua lib:
Exception has occurred: SSLError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
HTTPSConnectionPool(host='servicodados.ibge.gov.br', port=443): Max retries exceeded with url: /api/v1/localidades/municipios (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connection.py", line 653, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\util\ssl_.py", line 465, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\util\ssl_.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "\opt\conda\envs\myenv\lib\python3.10\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "\opt\conda\envs\myenv\lib\python3.10\ssl.py", line 1104, in _create
self.do_handshake()
File "\opt\conda\envs\myenv\lib\python3.10\ssl.py", line 1375, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
During handling of the above exception, another exception occurred:
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connectionpool.py", line 793, in urlopen
response = self._make_request(
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
The above exception was the direct cause of the following exception:
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\connectionpool.py", line 847, in urlopen
retries = retries.increment(
File "\opt\conda\envs\myenv\lib\python3.10\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='servicodados.ibge.gov.br', port=443): Max retries exceeded with url: /api/v1/localidades/municipios (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)')))
Olá Leonardo,
Primeiramente, gostaria de expressar meu agradecimento pela sua dedicação ao criar essa biblioteca. Ela tem sido extremamente útil e acelerou significativamente o desenvolvimento de um projeto pessoal meu.
Infelizmente, hoje me deparei com alguns erros ao executar a minha aplicação dentro de um container Docker que importa sua lib:
Minhas dependências:
The text was updated successfully, but these errors were encountered: