我在连接到Cosmos数据库时遇到SSL错误(SSL:CERTIFICATE\u VERIFY\u FAILED)。我的cosmos数据库存在于本地网络中,我正在ubuntu机器上运行python脚本。在
下面是我的代码:
from pydocumentdb import document_client
print('START----------------------')
uri = 'https://10.107.0.111:8081'
key = 'MY_KEY'
client = document_client.DocumentClient(uri, {'masterKey': key})
db_id = 'MY_ID'
db_query = "select * from r where r.id = '{0}'".format(db_id)
db = list(client.QueryDatabases(db_query))[0]
下面是我收到的ssl错误:
^{pr2}$寻求帮助和感谢。在
目前没有回答
相关问题 更多 >
编程相关推荐