Hi Team,
I’m facing Rasa Server Timeout issue waiting for Action Server to complete the custom action. I have tried increasing the DEFAULT_STREAM_READING_TIMEOUT_IN_SECONDS in console.py file. Still facing the same issue.
- PFB Rasa Version Details and the Rasa Server Error, *Rasa Version : 2.8.6
- Minimum Compatible Version: 2.8.0
- Rasa SDK Version : 2.8.6
- Rasa X Version : None
- Python Version : 3.8.10
- Operating System : Windows-2012ServerR2-6.3.9600-SP0
- Python Path : c:\chatbot\press_chatbot_backend\env\scripts\python.exe
Error:
2022-11-09 10:41:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.actions.action←[0m - Calling action endpoint to run action 'acti on_ask_amhpasswordreset'. 2022-11-09 10:42:58 ←[1;30mERROR ←[0m ←[34mrasa.core.processor←[0m - ←[31mEncountered an exception while running acti on 'action_ask_amhpasswordreset'.Bot will continue, but the actions events are lost. Please check the logs of your actio n server for more information.←[0m Traceback (most recent call last): File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\actions\action.py", line 685, in run response = await self.action_endpoint.request(
File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\utils\endpoints.py", line 172, in request
raise ClientResponseError( rasa.utils.endpoints.ClientResponseError: 503, Service Unavailable, body='b'<!DOCTYPE html><html lang=en><meta charset=U
TF-8><title>\xe2\x9a\xa0\xef\xb8\x8f 503 \xe2\x80\x94 Service Unavailable</title>\n<style>\n html { font-family: sans-serif }\n h2 { color: #888; }\n .tb-wrapper p { margin: 0 }\n .frame-border { margin: 1rem }\n .frame-line > * { padding: 0.3rem 0.6rem }\n .frame-line { margin-bottom: 0.3rem }\n .frame-code { font-size: 16px; padding-left: 4ch }\n .tb-wrapper { border: 1px solid #eee }\n .tb-header { background: #eee; padding: 0.3rem; font-weight: bold }\n .frame-descriptor { background: #e2eafb; font-size: 14px }\n </st yle>\n<h1>\xe2\x9a\xa0\xef\xb8\x8f 503 \xe2\x80\x94 Service Unavailable</h1><p>Response Timeout\n''
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\processor.py", line 772, in _run_action events = await action.run( File "c:\chatbot\press_chatbot_backend\env\lib\site-packages\rasa\core\actions\action.py", line 709, in run
raise RasaException("Failed to execute custom action.") from e rasa.shared.exceptions.RasaException: Failed to execute custom action. 2022-11-09 10:42:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.processor←[0m - Policy prediction ended with events '[<rasa.shar ed.core.events.DefinePrevUserUtteredFeaturization object at 0x000000FEB9A1CEB0>]'. 2022-11-09 10:42:58 ←[1;30mDEBUG ←[0m ←[34mrasa.core.processor←[0m - Action 'action_ask_amhpasswordreset' ended with events '[]'.