0

私はPythonの初心者で、この問題について助けていただければ幸いです。

requestsでクラウド サービスからファイルを取得するために使用していますkodi addon

付けてみverify=Falsegetけどダメだった

s = requests.Session()

file = s.get(api_base + '/api/v2/mounts/' + mount['id'] + '/files/download', params = {'path': foldername + '/' + file['name']}, verify=False).json()['link']

次のエラーが表示されます。

SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures.
4

1 に答える 1

0

インストールは追加のセキュリティ パッケージを要求します。

pip install requests[security]

これにより、ここに記載されている必要な SSL パッケージがインストールされます。

于 2016-03-21T14:06:31.117 に答える