I am running rasa-x on docker and running thru docker compose.
In action.py i am calling an api to fetch data.
Earlier it was working fine but now no response in rasa-x interactive learning
i checked logs of action server and no issues are there. In rasa-x, 3 dots keep blinking with no response.
How to debug the issue in docker?
How to implement exception handling in actions.py?
How to handle such issues
in action server, white I say these lines, it print all - app_id as well as hello.
app_id = tracker.get_slot('e_car_app_id')
dispatcher.utter_message(app_id)
where = Car_app_id(app_id).json()
dispatcher.utter_message('hello')
But when i added one more line to print where, it does not print at all, not even app_id and hello which it printed above.
app_id = tracker.get_slot('e_car_app_id')
dispatcher.utter_message(app_id)
where = Car_app_id(app_id).json()
dispatcher.utter_message('hello')
dispatcher.utter_message(where)
while checking log of rasa production docker container, it says - “ERROR rasa.server - An unexpected error occurred. Error: ‘dict’ object has no attribute ‘strip’”
while checking log of rasa production docker container, it says - “ERROR rasa.server - An unexpected error occurred. Error: ‘dict’ object has no attribute ‘strip’”
Do you know the content of where? Since you’re passing the raw json response to utter_message there could be something in that where object that is causing the issue.
instead of - dispatcher.utter_message(where)
i gave - dispatcher.utter_template(“utter_temp”,tracker, where = where)
where utter_temp is your details are here : {where}
and it worked.
If it work in 2nd way (utter_template), it should also work with utter_message.
Can you provide an example of what your where variable contains? And what the full definition of your response template looks like?
I can recreate the error message under and assumption that where is a dictionary. Changing utter_message to dispatcher.utter_message(template="utter_temp", where=where) resolves the error and responds with the correct text.