question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suppress "InsecureRequestWarning" messages when disabling cert verification

See original GitHub issue

If cert verification is disabled via use of add_http_options({'verify': False}), every REST API call will print a warning of the following form.

C:\Program Files (x86)\Python35-32\lib\site-packages\requests\packages\urllib3\connectionpool.py:838: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/security.html InsecureRequestWarning)

Since I explicitly disabled cert verification, these warnings are not useful and should be suppressed.

The interwebz tell me that this can be achieved by using the following setting requests.packages.urllib3.disable_warnings(InsecureRequestWa‌​rning)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
talvalincommented, Jan 12, 2017

On the recommendations front, I’ve got Let’s Encrypt, GlobalSign and SSL.com (based on the average reviews posted on SSL Shopper). Will that be sufficient?

0reactions
talvalincommented, Mar 28, 2017

development branch has been updated with the doc change that I made, so can we close this issue out now? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unverified HTTPS request is being made in Python2.6 - Stack ...
To disable warnings in requests' vendored urllib3, you'll need to import that ... The HTTPS certificate verification security measure isn't something to be ......
Read more >
Suppress SSL certificate warnings when ssl_verify=False is set?
These InsecureRequestWarning warning messages show up when a request is made to an HTTPS URL without certificate verification enabled. try this.
Read more >
How to disable InsecureRequestWarning: Unverified HTTPS ...
How to disable InsecureRequestWarning: Unverified HTTPS request is being made. If you use requests or urllib3, requests with SSL ...
Read more >
Disable InsecureRequestWarning in Python - Codeigo
InsecureRequestWarning is a warning that occurs when a request is made without certificate verification. In Python, this warning happens for ...
Read more >
3 Ways to Fix InsecureRequestWarning in Python
These InsecureRequestWarning warning messages show up when a request is made to an HTTPS URL without certificate verification enabled.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found