-
While trying to connect via thin mode, I keep getting the following error: `Traceback (most recent call last): The above exception was the direct cause of the following exception: Traceback (most recent call last): I have followed this guide: https://docs.oracle.com/en-us/iaas/autonomous-database-shared/doc/connecting-python-tls.html#GUID-CA446B91-BC48-4A66-BF69-B8D54B9CBAD4 and this guide: https://blogs.oracle.com/opal/post/easy-way-to-connect-python-applications-to-oracle-autonomous-databases And still am getting the above error. I can confirm the following are my settings on the database. I can also confirm I am using the TLS connection string on port 1521 and not the mTLS connection string on port 1522. Would someone be able to assist in resolving this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 24 replies
-
What server are you actually connecting to? Is this server using a self-signed certificate as the error suggests? If so, you'll need to add the certificate authority (of the server) to the certificate authorities recognized by your OS -- or you need to set up a "wallet" that contains the ceritificates needed to authenticate the server. |
Beta Was this translation helpful? Give feedback.
-
I am running into this same issue and testing my configuration using the instantclient shows that it is correct. |
Beta Was this translation helpful? Give feedback.
-
The answer for me was the following stack overflow article. The command I had to run was "/Applications/Python\ 3.11/install\ Certificates.command”. Change the [3.11] to whatever version of python you are using in your virtual env. Thank you very much @cjbj and @anthony-tuininga for all your assistance in troubleshooting the issue offline! |
Beta Was this translation helpful? Give feedback.
The answer for me was the following stack overflow article.
The command I had to run was "/Applications/Python\ 3.11/install\ Certificates.command”. Change the [3.11] to whatever version of python you are using in your virtual env.
Thank you very much @cjbj and @anthony-tuininga for all your assistance in troubleshooting the issue offline!