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

[Bug]: not able to use the script... #120

Open
ZivTow4Tech opened this issue Aug 30, 2024 · 1 comment
Open

[Bug]: not able to use the script... #120

ZivTow4Tech opened this issue Aug 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ZivTow4Tech
Copy link

enex2notion version

latest from today

What OS are you using?

MacOS

OS Version / Linux distribution

14.6.1

Bug description

got the following error message:

(myenv) Zivs-M1-MacBook-Pro:output_dir gillat$ enex2notion --token v02%3Auser_token_or_cookies%3AGNGm-P4DNvyYAKq4mk3U_xxAa4KWAiOSiAi0W4Syg8pLd31gz1-DlqPw_7i8ksoVuH4cIeIfwr8kxAkD_JHcWczRq4iggGhHMIcrpnJBs2ocU883MHng5RiI2xFjGceNGl8J "Audio.enex"
Traceback (most recent call last):
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connection.py", line 652, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connection.py", line 805, in ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/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/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/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/homebrew/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create
self.do_handshake()
File "/opt/homebrew/Cellar/python@3.12/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 490, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 873, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 873, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 873, in urlopen
return self.urlopen(
^^^^^^^^^^^^^
[Previous line repeated 2 more times]
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.notion.so', port=443): Max retries exceeded with url: /api/v3/loadUserContent (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/homebrew/bin/enex2notion", line 8, in
sys.exit(main())
^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/enex2notion/cli.py", line 47, in main
cli(sys.argv[1:])
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/enex2notion/cli.py", line 26, in cli
root = get_root(args.token, args.root_page)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/enex2notion/cli_notion.py", line 21, in get_root
client = get_notion_client(token)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/enex2notion/cli_notion.py", line 31, in get_notion_client
return NotionClient(token_v2=token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/notion/client.py", line 113, in init
self._update_user_info()
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/notion/client.py", line 144, in _update_user_info
records = self.post("loadUserContent", {}).json()["recordMap"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/ratelimit/decorators.py", line 113, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/ratelimit/decorators.py", line 80, in wrapper
return func(*args, **kargs)
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/notion/client.py", line 275, in post
return self._post(endpoint, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/notion/client.py", line 283, in _post
response = self.session.post(url, json=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/enex2notion/0.3.1_8/libexec/lib/python3.12/site-packages/requests/adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.notion.so', port=443): Max retries exceeded with url: /api/v3/loadUserContent (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))
(myenv) Zivs-M1-MacBook-Pro:output_dir gillat$

Log excerpt

No response

@ZivTow4Tech ZivTow4Tech added the bug Something isn't working label Aug 30, 2024
@neripark
Copy link

me too.
I would really appreciate it if you could fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants