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
Traceback (most recent call last):
File "D:/Prj/PycharmPrj/ASRT_v1.3.0/client_http.py", line 47, in
result = json.loads(r.text)
File "D:\Env\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "D:\Env\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "D:\Env\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
asrserver报错如下:
[2022-08-08 14:52:05,666] ERROR in app: Exception on /all [POST]
Traceback (most recent call last):
File "D:/Prj/PycharmPrj/ASRT_v1.3.0/asrserver_http.py", line 148, in recognition_post
request_data = request.get_json()
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\local.py", line 348, in getattr
return getattr(self._get_current_object(), name)
AttributeError: 'Request' object has no attribute 'get_json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "D:/Prj/PycharmPrj/ASRT_v1.3.0/asrserver_http.py", line 174, in recognition_post
request_data = request.get_json()
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\local.py", line 348, in getattr
return getattr(self._get_current_object(), name)
AttributeError: 'Request' object has no attribute 'get_json'
127.0.0.1 - - [08/Aug/2022 14:52:05] "POST /all HTTP/1.1" 500 -
Error on request:
Traceback (most recent call last):
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\asrserver_http.py", line 148, in recognition_post
request_data = request.get_json()
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\local.py", line 348, in getattr
return getattr(self._get_current_object(), name)
AttributeError: 'Request' object has no attribute 'get_json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
rv = self.dispatch_request()
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1503, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\asrserver_http.py", line 174, in recognition_post
request_data = request.get_json()
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\local.py", line 348, in getattr
return getattr(self._get_current_object(), name)
AttributeError: 'Request' object has no attribute 'get_json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\serving.py", line 304, in run_wsgi
execute(self.server.app)
File "D:\Prj\PycharmPrj\ASRT_v1.3.0\venv\lib\site-packages\werkzeug\serving.py", line 292, in execute
application_iter = app(environ, start_response)
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "D:\Env\Python37\lib\site-packages\flask\app.py", line 1428, in handle_exception
server_error = InternalServerError(original_exception=e)
TypeError: init() got an unexpected keyword argument 'original_exception'
求助,万分感谢!
The text was updated successfully, but these errors were encountered:
背景:下载ASRT_v1.3.0.zip包,无代码修改,Python3.7,依赖包为requirements.txt无修改,运行asrserver_http无报错,运行client_http时,client报错如下:
asrserver报错如下:
求助,万分感谢!
The text was updated successfully, but these errors were encountered: