Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabling warnings and adding timeout #14

Merged
merged 3 commits into from
Mar 15, 2021
Merged

Conversation

bhavyseth
Copy link
Contributor

while running my automation on a private program my terminal gets flooded with warnings like these:
InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.target.com'. Adding certificate verification is strongly advised.
because i had a lot of js files so seeing these was not so good so i have added
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) to disable the warnings
and sometimes my flow just stops at these req = requests.get(jsFile,verify=False,timeout=(5,5)) for infinitely. so i have added these timeout. maybe these would be helpfull for others.

added urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) to disable the warnings flooding my terminal
updated req = requests.get(jsFile,verify=False,timeout=(5,5)) and added a timeout to not run it infinitely
@m4ll0k m4ll0k merged commit 50b8712 into m4ll0k:master Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants