Python Forum
how to make this error stop ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make this error stop ?
#1
Hi ! Im using requests and beautifulSoup. And i have this piece of code :
stats = requests.get(URL, verify=False).json()
But i get error :
InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x...l-warnings warnings.warn(

How do i get rid of this ?
Reply
#2
Ok nvm i got this
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Stop Iteration Error quest 4 2,651 Mar-30-2021, 10:04 AM
Last Post: quest
  How can I make this server stop listening for connections to sockets Emekadavid 0 3,454 Jun-03-2020, 02:28 PM
Last Post: Emekadavid
  How to make Python stops for debugging when the error occurs? Tim 5 5,873 Feb-16-2018, 09:50 AM
Last Post: Tim
  Is this a normal/benign make test error when building python3.6 sofuego 2 3,538 Feb-12-2018, 12:32 AM
Last Post: sofuego
  How to make a message if there is a value error theguy007 2 3,342 Jan-22-2017, 06:18 PM
Last Post: theguy007

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020