-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Comments
me too. |
@ZivTow4Tech @neripark take a look at this closed issue, it discusses the problem you're having. For OS X, I just put in a final comment that was the precise steps that worked for me. It was a bit tricky to find b/c it was already closed, but searching issues & discussions (both open and closed) with key bits of your error message is helpful in projects like this. @vzhd1701 Think you can mark this one closed/duplicate. |
Will do. Thank you. Much appreciated.
…On Sun, Dec 1, 2024 at 3:03 PM ACSmith07 ***@***.***> wrote:
@ZivTow4Tech <https://github.com/ZivTow4Tech> @neripark
<https://github.com/neripark> take a look at this closed issue, it
discusses the problem you're having. For OS X, I just put in a final
comment that was the precise steps that worked for me.
SSL Cert fix <#119>
It was a bit tricky to find b/c it was already closed, but searching
issues & discussions (both open and closed) with key bits of your error
message is helpful in projects like this.
@vzhd1701 <https://github.com/vzhd1701> Think you can mark this one
closed/duplicate.
—
Reply to this email directly, view it on GitHub
<#120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BDNC5MFSDCG2GT2IE7FVCOT2DOISVAVCNFSM6AAAAABNNESQGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJQGI4TEMRUG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Based on macOS, I encountered the same issue, and here's the solution provided by ChatGPT: The error indicates that the enex2notion tool is experiencing SSL certificate verification failure when using the requests library to communicate with Notion's API. This is usually due to a lack of trusted CA certificates or incorrect certificate path configuration. Here are the solutions:
If it doesn't work, try turning off any proxy or VPN and give it another try. Best of luck to everyone! |
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/[email protected]/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/[email protected]/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/[email protected]/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
The text was updated successfully, but these errors were encountered: