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

certificate verify failed: unable to get local issuer certificate #46

Open
Kzer-Za opened this issue Aug 25, 2023 · 2 comments
Open

certificate verify failed: unable to get local issuer certificate #46

Kzer-Za opened this issue Aug 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Kzer-Za
Copy link

Kzer-Za commented Aug 25, 2023

The example with mimic3 'Hello world.' | aplay works just fine. However, when I start mimic3-server, I am greeted by some errors:

INFO:mimic3_http.__main__:Starting web server
ERROR:mimic3_http.app:Error setting up swagger UI page
Traceback (most recent call last):
  File "mimic3_http/app.py", line 338, in get_app
  File "swagger_ui/__init__.py", line 13, in api_doc
Exception: No match application isinstance type!
[2023-08-25 22:58:35 +0300] [70595] [INFO] Running on http://0.0.0.0:59125 (CTRL + C to quit)
INFO:hypercorn.error:Running on http://0.0.0.0:59125 (CTRL + C to quit)

Then, after opening the web-interface, if I select any language other than EN-UK, the web interface displays this error: URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>. Below I give the more detailed output from the console:

ERROR:mimic3_http.synthesis:Error during inference
Traceback (most recent call last):
  File "urllib/request.py", line 1346, in do_open
  File "http/client.py", line 1255, in request
  File "http/client.py", line 1301, in _send_request
  File "http/client.py", line 1250, in endheaders
  File "http/client.py", line 1010, in _send_output
  File "http/client.py", line 950, in send
  File "http/client.py", line 1424, in connect
  File "ssl.py", line 500, in wrap_socket
  File "ssl.py", line 1040, in _create
  File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mimic3_http/synthesis.py", line 125, in do_synthesis_proc
  File "mimic3_http/synthesis.py", line 81, in do_synthesis
  File "mimic3_http/synthesis.py", line 61, in do_synthesis
  File "mimic3_tts/tts.py", line 368, in speak_text
  File "mimic3_tts/tts.py", line 569, in _get_or_load_voice
  File "mimic3_tts/tts.py", line 621, in _download_voice
  File "mimic3_tts/download.py", line 121, in download_voice
  File "urllib/request.py", line 214, in urlopen
  File "urllib/request.py", line 517, in open
  File "urllib/request.py", line 534, in _open
  File "urllib/request.py", line 494, in _call_chain
  File "urllib/request.py", line 1389, in https_open
  File "urllib/request.py", line 1349, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
ERROR:mimic3_http.app:<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
Traceback (most recent call last):
  File "urllib/request.py", line 1346, in do_open
  File "http/client.py", line 1255, in request
  File "http/client.py", line 1301, in _send_request
  File "http/client.py", line 1250, in endheaders
  File "http/client.py", line 1010, in _send_output
  File "http/client.py", line 950, in send
  File "http/client.py", line 1424, in connect
  File "ssl.py", line 500, in wrap_socket
  File "ssl.py", line 1040, in _create
  File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "quart/app.py", line 1673, in full_dispatch_request
  File "quart/app.py", line 1718, in dispatch_request
  File "mimic3_http/app.py", line 215, in app_tts
  File "mimic3_http/app.py", line 103, in text_to_wav
  File "mimic3_http/synthesis.py", line 125, in do_synthesis_proc
  File "mimic3_http/synthesis.py", line 81, in do_synthesis
  File "mimic3_http/synthesis.py", line 61, in do_synthesis
  File "mimic3_tts/tts.py", line 368, in speak_text
  File "mimic3_tts/tts.py", line 569, in _get_or_load_voice
  File "mimic3_tts/tts.py", line 621, in _download_voice
  File "mimic3_tts/download.py", line 121, in download_voice
  File "urllib/request.py", line 214, in urlopen
  File "urllib/request.py", line 517, in open
  File "urllib/request.py", line 534, in _open
  File "urllib/request.py", line 494, in _call_chain
  File "urllib/request.py", line 1389, in https_open
  File "urllib/request.py", line 1349, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>

Steps to reproduce the behavior:

  1. Start mimic3-server and open http://localhost:59125
  2. Click on 'speak' without changing the default language or default text
  3. See error URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>

Expected behavior
The text in the input field should be spoken in the selected (i.e. default) language.

Environment (please complete the following information):

  • Device type: desktop
  • OS: Manjaro Linux
  • Mycroft-core version: not installed
  • Other versions: Python 3.11.3-2

Additional context
No modifications to source code or config files.

If I change in the web-interface the language to English (UK), it is spoken as it is supposed to be.

@Kzer-Za Kzer-Za added the bug Something isn't working label Aug 25, 2023
@termermc
Copy link

I'm having the same issue with and without the server. If it's anything besides en_UK/apope_low, it has this issue.

@dtgoitia
Copy link

dtgoitia commented Oct 17, 2023

Same issue here when trying to download es_ES/carlfm_low.

Click to see error
$ mimic3-download es_ES/carlfm_low
INFO:mimic3_tts.download:Downloading es_ES/carlfm_low
Traceback (most recent call last):
  File "urllib/request.py", line 1346, in do_open
  File "http/client.py", line 1255, in request
  File "http/client.py", line 1301, in _send_request
  File "http/client.py", line 1250, in endheaders
  File "http/client.py", line 1010, in _send_output
  File "http/client.py", line 950, in send
  File "http/client.py", line 1424, in connect
  File "ssl.py", line 500, in wrap_socket
  File "ssl.py", line 1040, in _create
  File "ssl.py", line 1309, in do_handshake
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "mimic3.py", line 36, in <module>
  File "mimic3_tts/download.py", line 243, in main
  File "mimic3_tts/download.py", line 121, in download_voice
  File "urllib/request.py", line 214, in urlopen
  File "urllib/request.py", line 517, in open
  File "urllib/request.py", line 534, in _open
  File "urllib/request.py", line 494, in _call_chain
  File "urllib/request.py", line 1389, in https_open
  File "urllib/request.py", line 1349, in do_open
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
[128524] Failed to execute script 'mimic3' due to unhandled exception!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants