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

ia configure failed #601

Open
bourbe opened this issue Aug 4, 2023 · 1 comment
Open

ia configure failed #601

bourbe opened this issue Aug 4, 2023 · 1 comment

Comments

@bourbe
Copy link

bourbe commented Aug 4, 2023

Hello

I hahe the error bellow when I am trying to configure. Please help

`
(base) PS C:\Users\clark.djilo> ia configure
Enter your Archive.org credentials below to configure 'ia'.

Email address: [email protected]
Password:
Traceback (most recent call last):
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 1042, in validate_conn
conn.connect()
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\util\ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\util\ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\clark.djilo\Anaconda3\lib\ssl.py", line 501, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\clark.djilo\Anaconda3\lib\ssl.py", line 1041, in _create
self.do_handshake()
File "C:\Users\clark.djilo\Anaconda3\lib\ssl.py", line 1310, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\adapters.py", line 489, in send
resp = conn.urlopen(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 787, in urlopen
retries = retries.increment(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='archive.org', port=443): Max retries exceeded with url: /services/xauthn/?op=login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\clark.djilo\Anaconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\clark.djilo\Anaconda3\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Users\clark.djilo\Anaconda3\Scripts\ia.exe_main
.py", line 7, in
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\internetarchive\cli\ia.py", line 171, in main
sys.exit(ia_module.main(argv, session))
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\internetarchive\cli\ia_configure.py", line 93, in main
config_file_path = configure(config_file=session.config_file,
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\internetarchive\api.py", line 549, in configure
auth_config = config_module.get_auth_config(
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\internetarchive\config.py", line 44, in get_auth_config
r = requests.post(u, params=p, data=d, timeout=10)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\Users\clark.djilo\Anaconda3\lib\site-packages\requests\adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='archive.org', port=443): Max retries exceeded with url: /services/xauthn/?op=login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)')))

`

@maxz
Copy link
Contributor

maxz commented Sep 25, 2023

Do you still experience this? It should be a transient error. Usually certificate issues could be caused by the server side forgetting to update their certificate or by your local time being incorrect. But in this case it's due to a self-signed certificate which is a bit strange nowadays.

Did you maybe try something with a proxy?

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

No branches or pull requests

2 participants