urllib3 is a non-standard, third-party library that is used by requests internally.īut lets say you don't want to take shortcuts. This is done by adding the following in your python script. The easy way out is to just suppress the warning. Adding certificate verification is strongly advised. InsecureRequestWarning: Unverified HTTPS request is being made to host ''. Now you can go on with your life, but the following warning will appear every time you make a request. The quickest way is to disable certificate verification (not a secure workaround) by passing the verify=False argument to the request. There's a lot of underlying concepts to explain but let's quickly explore some approaches on how this can be resolved. : HTTPSConnectionPool(host='', port=443): Max retries exceeded with url: /endpoint?param=value (Caused by SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)'))) You are working with the legendary python requests module and perform a routine GET request, when suddenly, this ugly message emerges out of the shadows and destroys the aesthetic on your spiffy screen.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |