Coding/Python
[Python & FastAPI] requests.exceptions.SSLError: HTTPSConnectionPool(host='test.co.kr', port=1105): Max retries exceeded with url: /api(Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate ve..
포스트it
2023. 10. 11. 09:00
728x90
반응형

[Python & FastAPI] requests.exceptions.SSLError: HTTPSConnectionPool(host='test.co.kr', port=1105): Max retries exceeded with url: /api(Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])"))) 에러 해결방법
FastAPI 사용중 다른 서버 api에 호출을 하는데 이러한 에러가 발생하였다.
SSLError였고, 해결 방법을 찾던 중, 초간단 해결 방법을 찾았다.
verify=False 만 설정해주면 되었는데,
저는 보안상 문제를 신경안써도 되기 때문에 이 방법으로 해결하였습니다ㅎ
import requests
response = requests.post('https://test.co.kr:1105/api', verify=False)
728x90
반응형