Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Python Automation Test-error Summary

Shulou Source: shulou.com Published: 2022-06-03 06:46:29 11月23日 Update

1. When running the program, the following error is reported:

HTTPSConnectionPool (host='test.xxxx.com', port=443): Max retries exceeded with url: / openapi/smartStock/000008.SZ.shtml (Caused by SSLError (SSLError (1,'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ ssl.c:600)'),))

Solution: add: verify=False when requests request

two。 Do not display warning information

Import urllib3

# remove the Warning at run time

Urllib3.disable_warnings (urllib3.exceptions.InsecureRequestWarning)

Tags: Run information method program error test automation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei Apple Microsoft vpn