- Whenever a token is requested via Cobra SDK or through the Request module get the following error:
- InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)
- Is there a way to get rid of this.
This warning actually comes from Requests module version 2.4.0 and later. You can get rid of the warning by adding the following to your scripts:
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings()
Comments
0 comments
Please sign in to leave a comment.