-
Notifications
You must be signed in to change notification settings - Fork 354
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
requests.exceptions.SSLError > add option to call requests with param verify=False #36
Comments
Similar issue here. I get |
Me too! I can suppress the error when i add the option However, i am also searching for a better solution ... |
Hello, I tried to reinstall requests and certifi but no change.
After changing .../gTTS-master/gtts/tts.py line 114 I assume I have to rbuild the utility (?) Tried to change line 114 in /usr/lib/python3.4/site-packages/gtts/tts.py |
Work around: in change line 572 from:
to read
|
works now, thank you very much ! |
Hi! gTTS 1.2.0 was released, fixing this. SSL verify is now always false, since we can live w/o it in our case. |
After making changes use these lines of code in the file where u are using tts.save() to avoid warnings. import urllib3 urllib3.disable_warnings() |
hi guys,
it is not s big issue, but if you are behind a corp firewall (I am) when trying to call tts.save, there is error with regards to SSL:
it is fixed by modifying line 114 from
r = requests.get(self.GOOGLE_TTS_URL, params=payload, headers=headers)
to
r = requests.get(self.GOOGLE_TTS_URL, params=payload, headers=headers,verify=False)
could be helpful to maybe having it as an option configurable when building tts object.
Cheers
Alex
The text was updated successfully, but these errors were encountered: