Encountered an exception while running action. Please check the logs of your action server for more information

 The bot wants to run 'action_tell_weather', correct?  Yes
D:\Anaconda\envs\rasa\lib\site-packages\rasa\server.py:852: FutureWarning: 
The "POST /conversations/<conversation_id>/execute" endpoint is deprecated. Inserting actions to the tracker externally should be avoided. Actions should be predicted by the policies only.
  rasa.shared.utils.io.raise_warning(
2022-05-25 15:37:10 ERROR    rasa.core.processor  - Encountered an exception while running action 'action_tell_weather'.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 "D:\Anaconda\envs\rasa\lib\site-packages\rasa\core\actions\action.py", line 742, in run
    response: Any = await self.action_endpoint.request(
  File "D:\Anaconda\envs\rasa\lib\site-packages\rasa\utils\endpoints.py", line 173, in request
    raise ClientResponseError(
rasa.utils.endpoints.ClientResponseError: 500, Internal Server Error, body='b'{"description":"Internal Server Error","status":500,"message":"The server encountered an internal error and cannot complete your request."}''      

The above exception was the direct cause of the following exception:       

Traceback (most recent call last):
  File "D:\Anaconda\envs\rasa\lib\site-packages\rasa\core\processor.py", line 869, in _run_action
    events = await action.run(
  File "D:\Anaconda\envs\rasa\lib\site-packages\rasa\core\actions\action.py", line 766, in run
    raise RasaException("Failed to execute custom action.") from e
rasa.shared.exceptions.RasaException: Failed to execute custom action.     

i define a custom action to connect a weather API, i changed the actions.py file, seemed something wrong with the python file, can help me with this error, thanks a lot.

Rasa Version      :         3.1.0
Minimum Compatible Version: 3.0.0
Rasa SDK Version  :         3.1.1
Rasa X Version    :         None
Python Version    :         3.8.13
Operating System  :         Windows-10-10.0.19044-SP0
Python Path       :         D:\Anaconda\envs\rasa\python.exe 

As the error and your title says,

Please check the logs of your action server for more information

So please check the logs of your action server for more information :slight_smile:

When you see this error, it’s an error with your Python code, not Rasa