Skip to content

Handling InsecureRequestWarning Errors

LoH-lu edited this page Dec 30, 2024 · 4 revisions

If you encounter the following error, it can be safely ignored:

InsecureRequestWarning: Unverified HTTPS request is being made to host 'xxxxx'. Adding certificate verification is strongly advised.

This typically occurs if your NetBox server does not have a certificate configured. To bypass this warning, add the following lines to netbox_import.py and netbox_export.py:

import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

Clone this wiki locally