Error while displaying dynamic buttons

This issue came up when i migrated from rasa 2.4 to 2.6. Please help. Dynamic buttons are not working anymore.

Error Message: Exception occurred while handling uri: ‘http://localhost:5055/webhook’ Traceback (most recent call last): File “c:\users\pchaudhari\appdata\local\continuum\anaconda3\envs\chatbot\lib\site-packages\sanic\app.py”, line 938, in handle_request response = await response File “c:\users\pchaudhari\appdata\local\continuum\anaconda3\envs\chatbot\lib\site-packages\rasa_sdk\endpoint.py”, line 114, in webhook return response.json(result, status=200) File “c:\users\pchaudhari\appdata\local\continuum\anaconda3\envs\chatbot\lib\site-packages\sanic\response.py”, line 202, in json dumps(body, **kwargs), TypeError: array([‘N/A’, ‘IT Svcs’, ‘IT Services’, ‘Consultant Travel Costs’], dtype=object) is not JSON serializable ^C

That’s odd. Could you share part of the custom action that is generating the buttons? It looks like you’re using a numpy array to store information, which isn’t json-serializable. You might need to turn that into a list beforehand.

Hey, it automatically solved. Thanks though.