question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to run custom action 'action_place_search'. Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:5055/webhook

See original GitHub issue

Rasa version: rasa-core 0.13.1 rasa-core-sdk 0.12.1 rasa-nlu 0.14.4

Python version: 3.6.4

Operating system (windows, osx, …): windows 10

Issue: I am trying to implement train_interactive.py it gives some error

ERROR:rasa_core.actions.action:Failed to run custom action ‘action_place_search’. Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 500 Server Error: INTERNAL SERVER ERROR for URL: http://localhost:5055/webhook ERROR:rasa_core.processor:Encountered an exception while running action ‘action_place_search’. The bot will continue, but the events of the action are lost. Make sure to fix the exception in your custom code.

In an action server, the error is : DEBUG:rasa_core_sdk.executor:Received request to run ‘action_place_search’ DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): www.googleapis.com:443 DEBUG:urllib3.connectionpool:https://www.googleapis.com:443 “POST /geolocation/v1/geolocate?key=AIzaSyBU9l9dlZS7J-CPWZchX0zUp2lpR4_HZkU HTTP/1.1” 200 None DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): maps.googleapis.com:443 DEBUG:urllib3.connectionpool:https://maps.googleapis.com:443 “GET /maps/api/place/nearbysearch/json?location=12.9549945,77.6936837&radius=550&type=supermarket&key=AIzaSyBU9l9dlZS7J-CPWZchX0zUp2lpR4_HZkU HTTP/1.1” 200 1554 ERROR:flask.app:Exception on /webhook [POST] Traceback (most recent call last): File “C:\Program Files\Python36\lib\site-packages\flask\app.py”, line 2292, in wsgi_app response = self.full_dispatch_request() File “C:\Program Files\Python36\lib\site-packages\flask\app.py”, line 1815, in full_dispatch_request rv = self.handle_user_exception(e) File “C:\Program Files\Python36\lib\site-packages\flask_cors\extension.py”, line 161, in wrapped_function return cors_after_request(app.make_response(f(*args, **kwargs))) File “C:\Program Files\Python36\lib\site-packages\flask\app.py”, line 1718, in handle_user_exception reraise(exc_type, exc_value, tb) File “C:\Program Files\Python36\lib\site-packages\flask_compat.py”, line 35, in reraise raise value File “C:\Program Files\Python36\lib\site-packages\flask\app.py”, line 1813, in full_dispatch_request rv = self.dispatch_request() File “C:\Program Files\Python36\lib\site-packages\flask\app.py”, line 1799, in dispatch_request return self.view_functionsrule.endpoint File “C:\Program Files\Python36\lib\site-packages\flask_cors\decorator.py”, line 128, in wrapped_function resp = make_response(f(*args, **kwargs)) File “C:\Program Files\Python36\lib\site-packages\rasa_core_sdk\endpoint.py”, line 83, in webhook response = executor.run(action_call) File “C:\Program Files\Python36\lib\site-packages\rasa_core_sdk\executor.py”, line 177, in run events = action(dispatcher, tracker, domain) File “C:\Users\trainee.1\Desktop\Place_Finder_Voice_Bot\actions.py”, line 48, in run rating = i[‘rating’] KeyError: ‘rating’ 127.0.0.1 - - [2019-04-18 16:22:49] “POST /webhook HTTP/1.1” 500 412 2.313876

Content of configuration file (config.yml):

pipeline:
- name: "nlp_spacy"
- name: "tokenizer_spacy"
- name: "ner_crf"
- name: "intent_featurizer_spacy"
- name: "intent_classifier_sklearn"
- name: "ner_duckling"
  dimensions: ['number']

Content of domain file (domain.yml) (if used & relevant):


actions:
- utter_opening_hours
- utter_no_results
- utter_address
- utter_greet
- utter_goodbye
- action_place_search
- utter_what_radius
- utter_rating
- utter_thanks

entities:
- query
- number

intents:
- place_search
- thanks
- inform
- greet
- goodbye
- opening_hours
- address
- rating

slots:
  address:
    type: unfeaturized

  location_match:
    type: categorical
    values:
    - none
    - one

  number:
    type: text

  opening_hours:
    type: unfeaturized

  query:
    type: text

  rating:
    type: unfeaturized

templates:
  utter_address:
  - text: The address is {address}.
  utter_goodbye:
  - text: Talk to you later!
  utter_greet:
  - text: Hello! I am a places search assistant. I can help you find places wherever
      you are, provide information about the location like opening hours, rating,
      address. So what are you looking for?
  utter_no_results:
  - text: Sorry, I couldn't find anything.
  utter_opening_hours:
  - text: The place is {opening_hours}
  utter_rating:
  - text: The rating is {rating}
  utter_thanks:
  - text: You are very welcome.
  utter_what_radius:
  - text: Within what radius?
![Screenshot (39)](https://user-images.githubusercontent.com/48979102/56356995-fe227c00-61f7-11e9-8abf-a2c1a3b42e17.png)
![Screenshot (40)](https://user-images.githubusercontent.com/48979102/56357020-0d092e80-61f8-11e9-84d2-f20cba63ebe5.png)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
guilacerdacommented, Apr 24, 2019

I was updating rasa core 10.4 to version 13.x, but its solved.

I was having a problem with the docker that was running container with cache, so the methods were not updating.

Thanks for availability

0reactions
mayurkuwar43commented, Aug 1, 2020

Hello , i am facing the same issue,please help. Failed to run custom action ‘lead_form_p1’. Couldn’t connect to the server at ‘http://localhost:5055/webhook’. Is the server running? Error: Cannot connect to host localhost:5055 ssl:default [Connect call failed (‘127.0.0.1’, 5055)] 2020-07-31 18:39:55 ERROR rasa.core.processor - Encountered an exception while running action ‘lead_form_p1’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to run custom action 'action_place_search ... - GitHub
Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200...
Read more >
Failed to run custom action. Action server responded with a ...
Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 500 Server Error: INTERNAL SERVER...
Read more >
Failed to run custom action 'action_place_search'. Action ...
Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200...
Read more >
python 3.x - RASA Failed to run custom action - Stack Overflow
it looks like the Action Server is not running, hence it cannot be reached rasa run actions. The log should tell it is...
Read more >
How to Fix a 500 Internal Server Error on Your WordPress Site
A status code is a way to notify you about the status of the request. It could be a 200 status code which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found