Replies: 1 comment 1 reply
-
How fix it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
上面是提示信息,我打开API容器的日志是以下信息
`Traceback (most recent call last):
File "/app/api/controllers/web/audio.py", line 73, in post
response = AudioService.transcript_tts(
File "/app/api/services/audio_service.py", line 104, in transcript_tts
raise e
File "/app/api/services/audio_service.py", line 96, in transcript_tts
return model_instance.invoke_tts(
File "/app/api/core/model_manager.py", line 186, in invoke_tts
return self.model_type_instance.invoke(
File "/app/api/core/model_runtime/model_providers/__base/tts_model.py", line 37, in invoke
raise self._transform_invoke_error(e)
File "/app/api/core/model_runtime/model_providers/__base/ai_model.py", line 65, in _transform_invoke_error
for invoke_error, model_errors in self._invoke_error_mapping.items():
AttributeError: 'NoneType' object has no attribute 'items'
2024-05-09 16:15:16.210 ERROR [Dummy-22] [app.py:838] - Exception on /api/text-to-audio [POST]
Traceback (most recent call last):
File "/app/api/core/model_runtime/model_providers/tongyi/tts/tts.py", line 92, in _tts_invoke
if future.result():
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/api/core/model_runtime/model_providers/tongyi/tts/tts.py", line 149, in _process_sentence
response = dashscope.audio.tts.SpeechSynthesizer.call(model=voice, sample_rate=48000,
File "/usr/local/lib/python3.10/site-packages/dashscope/audio/tts/speech_synthesizer.py", line 146, in call
for part in response:
File "/usr/local/lib/python3.10/site-packages/dashscope/api_entities/websocket_request.py", line 71, in
return (item for item in response)
File "/usr/local/lib/python3.10/site-packages/dashscope/common/utils.py", line 96, in async_to_sync
for message in iter_over_async(async_generator, loop):
File "/usr/local/lib/python3.10/site-packages/dashscope/common/utils.py", line 86, in iter_over_async
done, obj = loop.run_until_complete(get_next())
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 625, in run_until_complete
self._check_running()
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 586, in _check_running
raise RuntimeError(
RuntimeError: Cannot run the event loop while another loop is running
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/api/core/model_runtime/model_providers/tongyi/tts/tts.py", line 95, in _tts_invoke
raise InvokeBadRequestError(str(ex))
core.model_runtime.errors.invoke.InvokeBadRequestError: Cannot run the event loop while another loop is running
During handling of the above exception, another exception occurred:
`
Beta Was this translation helpful? Give feedback.
All reactions