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
  How to make my Telegram bot stop working at 16:15 and not work on Fridays? hus73 2 500 Aug-10-2024, 12:06 PM
Last Post: hus73
  Stop Iteration Error quest 4 3,245 Mar-30-2021, 10:04 AM
Last Post: quest
  How can I make this server stop listening for connections to sockets Emekadavid 0 3,892 Jun-03-2020, 02:28 PM
Last Post: Emekadavid
  How to make Python stops for debugging when the error occurs? Tim 5 6,693 Feb-16-2018, 09:50 AM
Last Post: Tim
  Is this a normal/benign make test error when building python3.6 sofuego 2 3,886 Feb-12-2018, 12:32 AM
Last Post: sofuego
  How to make a message if there is a value error theguy007 2 3,668 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