Page MenuHomePhabricator
Paste P16783

Basque adapter encoding error
ActivePublic

Authored by Sebastian_Berlin-WMSE on Wed, Jul 7, 12:08 PM.
wikispeech-server_1 | INFO: request.url: http://wikispeech-server:10001/?lang=eu&voice=ahotts-eu-female&input=Kontxu+Odriozola+Lesaka+%28Azpeitia%2C+Gipuzkoa%2C+1945eko+uztailaren+7a+–+Donostia%2C+2016ko+otsailaren+5a%29+euskal+herritar+aktorea+izan+zen.
wikispeech-server_1 | [2021-07-07 11:49:15,419] ERROR in app: Exception on / [GET]
wikispeech-server_1 | Traceback (most recent call last):
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 2070, in wsgi_app
wikispeech-server_1 | response = self.full_dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1515, in full_dispatch_request
wikispeech-server_1 | rv = self.handle_user_exception(e)
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask_cors/extension.py", line 165, in wrapped_function
wikispeech-server_1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1513, in full_dispatch_request
wikispeech-server_1 | rv = self.dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1499, in dispatch_request
wikispeech-server_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 289, in wikispeech
wikispeech-server_1 | result = synthesise(lang, voice_name, markup,"markup",output_type, hostname=hostname)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 689, in synthesise
wikispeech-server_1 | (audio_file, output_tokens) = process(lang, voice, input, hostname=hostname)
wikispeech-server_1 | File "wikispeech_server/adapters/ahotts_adapter.py", line 194, in synthesise
wikispeech-server_1 | response=requests.post("http://"+ahotts_server_ip+":"+ahotts_server_port+"/ahotts_getaudio",data={'text':input.encode('latin-1')+'\n'.encode('latin-1'),'lang':lang,'voice':voice,'speed':ahotts_speed})
wikispeech-server_1 | UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 67: ordinal not in range(256)
wikispeech-server_1 | 127.0.0.1 - - [07/Jul/2021 11:49:15] "GET /?lang=eu&voice=ahotts-eu-female&input=Kontxu+Odriozola+Lesaka+%28Azpeitia%2C+Gipuzkoa%2C+1945eko+uztailaren+7a+–+Donostia%2C+2016ko+otsailaren+5a%29+euskal+herritar+aktorea+izan+zen. HTTP/1.1" 500 -
sox-proxy_1 | [2021-07-07 11:49:15,425] ERROR in app: Exception on / [POST]
sox-proxy_1 | Traceback (most recent call last):
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 2070, in wsgi_app
sox-proxy_1 | response = self.full_dispatch_request()
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1515, in full_dispatch_request
sox-proxy_1 | rv = self.handle_user_exception(e)
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1513, in full_dispatch_request
sox-proxy_1 | rv = self.dispatch_request()
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1499, in dispatch_request
sox-proxy_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
sox-proxy_1 | File "sox-proxy.py", line 23, in get
sox-proxy_1 | data = json.loads(response.text)
sox-proxy_1 | File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
sox-proxy_1 | return _default_decoder.decode(s)
sox-proxy_1 | File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
sox-proxy_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
sox-proxy_1 | File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
sox-proxy_1 | raise JSONDecodeError("Expecting value", s, err.value) from None
sox-proxy_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
sox-proxy_1 | 192.168.16.1 - - [07/Jul/2021 11:49:15] "POST / HTTP/1.1" 500 -
wikispeech-server_1 | 192.168.16.1 - - [07/Jul/2021 11:49:16] "GET /default_voices HTTP/1.1" 200 -
wikispeech-server_1 | INFO: request.url: http://wikispeech-server:10001/?lang=eu&voice=ahotts-eu-female&input=Kontxu+Odriozola+Lesaka+%28Azpeitia%2C+Gipuzkoa%2C+1945eko+uztailaren+7a+–+Donostia%2C+2016ko+otsailaren+5a%29+euskal+herritar+aktorea+izan+zen.
wikispeech-server_1 | [2021-07-07 11:49:17,354] ERROR in app: Exception on / [GET]
wikispeech-server_1 | Traceback (most recent call last):
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 2070, in wsgi_app
wikispeech-server_1 | response = self.full_dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1515, in full_dispatch_request
wikispeech-server_1 | rv = self.handle_user_exception(e)
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask_cors/extension.py", line 165, in wrapped_function
wikispeech-server_1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1513, in full_dispatch_request
wikispeech-server_1 | rv = self.dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1499, in dispatch_request
wikispeech-server_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 289, in wikispeech
wikispeech-server_1 | result = synthesise(lang, voice_name, markup,"markup",output_type, hostname=hostname)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 689, in synthesise
wikispeech-server_1 | (audio_file, output_tokens) = process(lang, voice, input, hostname=hostname)
wikispeech-server_1 | File "wikispeech_server/adapters/ahotts_adapter.py", line 194, in synthesise
wikispeech-server_1 | response=requests.post("http://"+ahotts_server_ip+":"+ahotts_server_port+"/ahotts_getaudio",data={'text':input.encode('latin-1')+'\n'.encode('latin-1'),'lang':lang,'voice':voice,'speed':ahotts_speed})
wikispeech-server_1 | UnicodeEncodeError: 'latin-1' codec can't encode character '\u2013' in position 67: ordinal not in range(256)
wikispeech-server_1 | 127.0.0.1 - - [07/Jul/2021 11:49:17] "GET /?lang=eu&voice=ahotts-eu-female&input=Kontxu+Odriozola+Lesaka+%28Azpeitia%2C+Gipuzkoa%2C+1945eko+uztailaren+7a+–+Donostia%2C+2016ko+otsailaren+5a%29+euskal+herritar+aktorea+izan+zen. HTTP/1.1" 500 -
sox-proxy_1 | [2021-07-07 11:49:17,360] ERROR in app: Exception on / [POST]
sox-proxy_1 | Traceback (most recent call last):
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 2070, in wsgi_app
sox-proxy_1 | response = self.full_dispatch_request()
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1515, in full_dispatch_request
sox-proxy_1 | rv = self.handle_user_exception(e)
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1513, in full_dispatch_request
sox-proxy_1 | rv = self.dispatch_request()
sox-proxy_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1499, in dispatch_request
sox-proxy_1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
sox-proxy_1 | File "sox-proxy.py", line 23, in get
sox-proxy_1 | data = json.loads(response.text)
sox-proxy_1 | File "/usr/lib/python3.7/json/__init__.py", line 348, in loads
sox-proxy_1 | return _default_decoder.decode(s)
sox-proxy_1 | File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
sox-proxy_1 | obj, end = self.raw_decode(s, idx=_w(s, 0).end())
sox-proxy_1 | File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
sox-proxy_1 | raise JSONDecodeError("Expecting value", s, err.value) from None
sox-proxy_1 | json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
sox-proxy_1 | 192.168.16.1 - - [07/Jul/2021 11:49:17] "POST / HTTP/1.1" 500 -