You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug Display Screen fails to handle Flask-gTTS failure when the machine is not connected to the internet.
To Reproduce
Steps to reproduce the issue:
Disconnect your internet.
Go to the display screen.
Checkout the JS Console.
Please complete the following information:
Operating System (OS): Windows 10
Browser: N\A
FQM Version: 0.8.1
Error:
Traceback (most recent call last):
File "C:\Program Files\Python37-32\lib\site-packages\flask\app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "C:\Program Files\Python37-32\lib\site-packages\flask\app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Program Files\Python37-32\lib\site-packages\flask\app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Program Files\Python37-32\lib\site-packages\flask\_compat.py", line 35, in reraise
raise value
File "C:\Program Files\Python37-32\lib\site-packages\flask\app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Program Files\Python37-32\lib\site-packages\flask\app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Program Files\Python37-32\lib\site-packages\flask_gtts\main.py", line 148, in wrapper
return function(*args, **kwargs)
File "C:\Program Files\Python37-32\lib\site-packages\flask_gtts\main.py", line 160, in gtts_route
return jsonify(mp3=self.say(language, text)
File "C:\Program Files\Python37-32\lib\site-packages\flask_gtts\main.py", line 102, in say
generator.save(file_path)
File "C:\Program Files\Python37-32\lib\site-packages\gtts\tts.py", line 249, in save
self.write_to_fp(f)
File "C:\Program Files\Python37-32\lib\site-packages\gtts\tts.py", line 194, in write_to_fp
str(e))
gtts.tts.gTTSError: Connection error during token calculation: HTTPSConnectionPool(host='translate.google.com', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x0672D150>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed'))
The text was updated successfully, but these errors were encountered:
Describe the bug
Display Screen
fails to handleFlask-gTTS
failure when the machine is not connected to the internet.To Reproduce
Steps to reproduce the issue:
Please complete the following information:
N\A
Error:
The text was updated successfully, but these errors were encountered: