SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
回答済みHi Team , one of my team member getting this error in my script while hitting the box api
from jupyter_client.session import utcnow as now
2021-10-31 22:30:40,691 root INFO Checking kerberos auth config
2021-10-31 22:30:40,884 boxsdk.network.default_network INFO @[36mPOST https://api.box.com/oauth2/token {'data': {'assertion': b'eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjdpbzVt'
b'bWRkIn0.eyJpc3MiOiJ3azRtejkyaXhkMTAwOXpqZm4zdm8xOHB1'
b'YmJsY2MzNiIsInN1YiI6IjEyNzQzNDUzODY5IiwiYm94X3N1Yl90'
b'eXBlIjoidXNlciIsImF1ZCI6Imh0dHBzOi8vYXBpLmJveC5jb20v'
b'b2F1dGgyL3Rva2VuIiwianRpIjoiRjZBREFpMnY5TzA3eFVNS3Ri'
b'eE1LWHpUM1FFa0RyUFg4RUpHMjFHZlhsdWRZckNEQkVCN2tKdGd3'
b'M28iLCJleHAiOjE2MzU3NDQ2NzB9.SOZa-tIF9ebiBjQO3XZ_ysR'
b'6t3B529MJRgHmmXimX_jq31a7F0cfk63IZ4o_8HxWoZcifMBaQoy'
b'oT8DzfPm_spr7CVd4OM14xeEncPUL0h0VZs15akacaZJvHYn8dqS'
b'o9aTRj5uzM7UB5R0DVw_BatNo75JenGaagBag9KdB0k_yVLNrCwX'
b'NR7w3pGYYcKdKDOdoqN9yAKn6utWfQ-eM5h5u4apx1BMdvjROBHU'
b'r0Y-HU6ikqKKpUMZNAF7qlUMBbqjsWc4AQNpNN48hmRTRycnwKzW'
b'jJII62qe7HcBH_y9k0zGw2cES56L5j1MoiTSiyXSMGxcXJjQRiq7'
b'BcFqJjg',
'box_device_id': '0',
'client_id': '---cc36',
'client_secret': '---nUCH',
'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer'},
'headers': {'User-Agent': 'box-python-sdk-2.0.0',
'X-Box-UA': 'agent=box-python-sdk/2.0.0; env=python/3.6.9',
'content-type': 'application/x-www-form-urlencoded'}}@[0m
2021-10-31 22:30:41,135 boxsdk.network.default_network INFO @[32m"POST https://api.box.com/oauth2/token" 200 110
{'Date': 'Mon, 01 Nov 2021 05:30:41 GMT', 'Content-Type': 'application/json', 'Content-Length': '110', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=31536000', 'Set-Cookie': 'box_visitor_id=617f7b80e652a8.19630313; expires=Tue, 01-Nov-2022 05:30:40 GMT; Max-Age=31536000; path=/; domain=.box.com; secure, bv=OPS-44818; expires=Mon, 08-Nov-2021 06:30:40 GMT; Max-Age=608400; path=/; domain=.app.box.com; secure, cn=19; expires=Tue, 01-Nov-2022 05:30:40 GMT; Max-Age=31536000; path=/; domain=.app.box.com; secure, site_preference=desktop; path=/; domain=.box.com; secure', 'Cache-Control': 'no-store'}
{'access_token': '---Swbx',
'expires_in': 3765,
'restricted_to': [],
'token_type': 'bearer'}
@[0m
2021-10-31 22:30:41,136 boxsdk.network.default_network INFO @[36mGET https://api.box.com/2.0/folders/140077713869/items {'headers': {'Authorization': '---Swbx',
'User-Agent': 'box-python-sdk-2.0.0',
'X-Box-UA': 'agent=box-python-sdk/2.0.0; env=python/3.6.9'},
'params': {'offset': 0}}@[0m
2021-10-31 22:30:41,349 boxsdk.network.default_network INFO @[32m"GET https://api.box.com/2.0/folders/140077713869/items?offset=0" 200 1172
{'Date': 'Mon, 01 Nov 2021 05:30:41 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'x-envoy-upstream-service-time': '174', 'content-encoding': 'gzip', 'box-request-id': '03b79e095257794d0c3fd778b518ef3c8', 'cache-control': 'no-cache, no-store', 'strict-transport-security': 'max-age=31536000'}
{'entries': [{'etag': '165',
'file_version': {'id': '944718908306',
'sha1': 'ba6bea9ec2c1a908b2ab2934de9ed201383933ab',
'type': 'file_version'},
'id': '861194562168',
'name': 'esg_acct_bogie.json',
'sequence_id': '165',
'sha1': 'ba6bea9ec2c1a908b2ab2934de9ed201383933ab',
'type': 'file'},
{'etag': '21',
'file_version': {'id': '933831047354',
'sha1': 'e0e36645764774bd6a927caabcdfba7ddaae8274',
'type': 'file_version'},
'id': '842278130275',
'name': 'esg_bi_optimized_config.json',
'sequence_id': '21',
'sha1': 'e0e36645764774bd6a927caabcdfba7ddaae8274',
'type': 'file'},
{'etag': '30',
'file_version': {'id': '943659800649',
'sha1': '769ae8490c7785ea6e6df80c4ac88edeb722ad48',
'type': 'file_version'},
'id': '875333531765',
'name': 'esg_bogie_test_version.json',
'sequence_id': '30',
'sha1': '769ae8490c7785ea6e6df80c4ac88edeb722ad48',
'type': 'file'},
{'etag': '29',
'file_version': {'id': '934934826324',
'sha1': '0b0d2a38600f06c97b9bbe58ea093fcb6d75a73a',
'type': 'file_version'},
'id': '841366290887',
'name': 'pimbook_report_scheds.json',
'sequence_id': '29',
'sha1': '0b0d2a38600f06c97b9bbe58ea093fcb6d75a73a',
'type': 'file'}],
'limit': 100,
'offset': 0,
'order': [{'by': 'type', 'direction': 'ASC'},
{'by': 'name', 'direction': 'ASC'}],
'total_count': 4}
@[0m
2021-10-31 22:30:41,353 boxsdk.network.default_network INFO @[36mGET https://api.box.com/2.0/files/841366290887/content {'headers': {'Authorization': '---Swbx',
'User-Agent': 'box-python-sdk-2.0.0',
'X-Box-UA': 'agent=box-python-sdk/2.0.0; env=python/3.6.9'},
'params': None,
'stream': True}@[0m
2021-10-31 22:30:41,727 boxsdk.network.default_network WARNING @[31mRequest "GET https://api.box.com/2.0/files/841366290887/content" failed with SSLError exception: SSLError(MaxRetryError("HTTPSConnectionPool(host='ec2apne1.boxcloud.com', port=443): Max retries exceeded with url: /d/1/a1!1_2MNNBDLnz9cm_OV2HsE7YQad2l1biHFr4cAn8hoHZyu39aIZfVVEz59prwqrvl7nOwFcoWbO_I_ItqqzjTD_be1RrsByvepTPIufwWWYeYRW1-lFluCeKFeCRGBz1n7Uhv_2U4QLCBxGmCXgFLKQW1f9Uic_I9F6irAf93I84cCiL63qEWdg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63msQwNUXhJCgeNY0aSPSxv6-180dN8x-4l3GIwKm12GMUU5viSKKIf9XcZOgPKFVYJIeDD-I3KKJ_a1n/download (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))",),)@[0m
Traceback (most recent call last):
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/connection.py", line 394, in connect
ssl_context=context,
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 370, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/ssl.py", line 407, in wrap_socket
_context=self, _session=session)
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/ssl.py", line 817, in __init__
self.do_handshake()
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/ssl.py", line 1077, in do_handshake
self._sslobj.do_handshake()
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/ssl.py", line 689, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/appl/pimprod/pimco_common/pypimco_infra/anaconda3_linux/lib/python3.6/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='ec2apne1.boxcloud.com', port=443): Max retries exceeded with url: /d/1/a1!1_2MNNBDLnz9cm_OV2HsE7YQad2l1biHFr4cAn8hoHZyu39aIZfVVEz59prwqrvl7nOwFcoWbO_I_ItqqzjTD_be1RrsByvepTPIufwWWYeYRW1-lFluCeKFeCRGBz1n7Uhv_2U4QLCBxGmCXgFLKQW1f9Uic_I9F6irAf93I84cCiL63qEWdgukrT02HYl7SZ_4HLM0nhzH30GxmiLmcUBzqaoXPMIf4TeJh6Zi8yOt4aLo3XuDBwsT5oBZtpxo2n45G7-2fiG6QNY8b8Ofq2sP2xZhtsxTwRZc_er3nD0MJ2hD33b2zi0ZFEP0wyd9OhoRi8YGMNF3w4fehXFQjLOomzKIxCkuN2XbylGoL61V36yGsBCUgPhf3MTwN_14tfvxKzRADzkcFiMQuZsBC57eJbdeq1-xN8NdqIdiIapKxnZRE89IZpyrH1Wi562Q1RKjZJMuZwhl4yFxFELkPitvrxeb5wO9yxwYLy_ZRMQI8VKk_X46ufhJGGfVsjPP3lhHcRkwe7bM0XIRvpEPHnq0iWYDHVneXb0AWarfIj4Pm90kN36dnmkSkTp6wwLQ06WbR0TKYbCD1QfXlp6mrU3bhnUOkMQc5sL9a1wLtRs2AKkYPVI2Veheec7BVOraq1pAj9yDjC-vWKeLJVeLHUUT_obOwWl7C3J_RYB-h67j8b9yW1b_AC99n_BIlCeufXLGz3EwVDOUnc584AgBoWclorRSq9ZK5GMpAmug1yEh8PwMq1Ha5oFwWai1hh0S3tEndtMkVdQBDzH6C1_Bihku55Md6laGSHm_PLf6o_249ewlkpt9nLMa1F3jF39miVYPPX6lZinBUcui3o6434pVny-Ov-pq4-ff5Vb3jk86A8k5RXCJP9vby6CrJJjkOYZShtaHIB4-HpAAiBLHMBOyNZBXn6OUHYl_Fz3CBGhdOumrw0KEn7XoJLDJFLSeIGNiWndXZ32hx-RsMsmZLBA8VcwUon12PyE8tiYlndnBfaNuCu83K6j7aCiMOj5LWvQmuKHuSqDKzNIIOVyR8SS-LLLYEvLFgmnwwYAXcvqaIghpH13AfSkqOWvuUrpi4bjbCuTI6itCGsLQizbIfJmWgg54GUes5D4YLm0K7rHDfrfm4mh3-xRKetbprnrTOomNlR4zoyoeTzWUVSPmulWqu8Bc31YolQ1gPIbr8FaVxongb8nu_9k_D8F9_UT04qknHfFd-m2XqF8bf0nY6CZHCruyaTTLOdrw2JvwEh3W1ADxdnK63msQwNUXhJCgeNY0aSPSxv6-180dN8x-4l3GIwKm12GMUU5viSKKIf9XcZOgPKFVYJIeDD-I3KKJ_a1n/download (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),))
During handling of the above exception, another exception occurred:
please help for this box issue .
-
正式なコメント
Hi,
It looks like there is some sort of certificate error - which can sometimes mean a company proxy is stopping the traffic from downloading content. You might reach out to your IT team to see if there is a proxy you don't know about.
Thanks,
Alex, Box Developer Advocate
コメントアクション -
Alex Novotny
I'm also getting this. I do not have any proxy server around. It seems like you have a self-signed certificate somewhere in your chain. I'm using java and not python. But I've calls to other https endpoints that go through without any issue.
Also, searching the support forum, I see a few of these complains every once in a while. Maybe there is some hidden issue that affects some of us from time to time?
サインインしてコメントを残してください。
コメント
2件のコメント