I wanted to print dataframe of products in the actions.py with the help of a dispatcher.utter_message or any other method in bot. I am getting an error is mentioned below:
Blockquote ERROR rasa.core.processor - Encountered an exception while running action ‘action_get_accessories’.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information. Traceback (most recent call last): File “e:\anaconda\envs\chatbot\lib\site-packages\rasa\core\actions\action.py”, line 686, in run json=json_body, method=“post”, timeout=DEFAULT_REQUEST_TIMEOUT File “e:\anaconda\envs\chatbot\lib\site-packages\rasa\utils\endpoints.py”, line 173, in request response.status, response.reason, await response.content.read() rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body=‘b’\xe2\x9a\xa0\xef \xb8\x8f 500 \xe2\x80\x94 Internal Server Error\n\n html { font-family: sans-serif }\n h2 { color: #888; }\n .tb-w rapper p { margin: 0 }\n .frame-border { margin: 1rem }\n .frame-line > * { padding: 0.3rem 0.6rem }\n .frame-line { margin-botto m: 0.3rem }\n .frame-code { font-size: 16px; padding-left: 4ch }\n .tb-wrapper { border: 1px solid #eee }\n .tb-header { backgrou nd: #eee; padding: 0.3rem; font-weight: bold }\n .frame-descriptor { background: #e2eafb; font-size: 14px }\n \n
\xe2\x9a\xa0\xef \xb8\x8f 500 \xe2\x80\x94 Internal Server Error
The server encountered an internal error and cannot complete your request.\n’’
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File “e:\anaconda\envs\chatbot\lib\site-packages\rasa\core\processor.py”, line 773, in _run_action output_channel, nlg, temporary_tracker, self.domain File “e:\anaconda\envs\chatbot\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.
Also in the actions.py file I am getting this issue.
Blockquote Exception occurred while handling uri: ‘http://localhost:5055/webhook’ Traceback (most recent call last): File “e:\anaconda\envs\chatbot\lib\site-packages\sanic\app.py”, line 931, in handle_request response = await response File “e:\anaconda\envs\chatbot\lib\site-packages\rasa_sdk\endpoint.py”, line 114, in webhook return response.json(result, status=200) File “e:\anaconda\envs\chatbot\lib\site-packages\sanic\response.py”, line 205, in json dumps(body, **kwargs),
is not JSON serializable