Rasa Core does not work with RASA NLU running as standalone server

I’m using RASA CORE in a docker container and NLU in another container. When I test the NLU it responds correctly:

curl -XPOST http://172.31.0.5:5000/parse -H "Content-type: application/json" -d '{"q":"A joke please"}'

Result:

{
  "intent": {
    "name": "joke",
    "confidence": 0.7727253787113129
  },
  "entities": [],
  "intent_ranking": [
    {
      "name": "joke",
      "confidence": 0.7727253787113129
    },
    {
      "name": "greet",
      "confidence": 0.061411774609490856
    },
    {
      "name": "name",
      "confidence": 0.05015398259235015
    },
    {
      "name": "thank",
      "confidence": 0.044701038797837836
    },
    {
      "name": "bye",
      "confidence": 0.0407617534424718
    },
    {
      "name": "affirm",
      "confidence": 0.030246071846536073
    }
  ],
  "text": "A joke please",
  "project": "default",
  "model": "model_20181025-212932"
}

However, when I test the RASA CORE the NLU responds to it with a 404 error.

curl -XPOST http://172.31.0.6:5005/webhooks/rest/webhook -H “Content-type: application/json” -d ‘{“sender”:“Abner”, “message”:“A joke please”}’

[]

The NLU log when CORE calls it:

2018-10-25 21:57:54+0000 [-] "172.31.0.6" - - [25/Oct/2018:21:57:54 +0000] "POST /parse HTTP/1.1" 404 50 "-" "python-requests/2.18.4"

And the CORE log:

172.31.0.1 - - [2018-10-25 21:57:54] "POST /webhooks/rest/webhook HTTP/1.1" 200 142 0.013761
2018-10-25 21:59:54 DEBUG    rasa_core.tracker_store  - Recreating tracker for id 'Abner'
2018-10-25 21:59:54 DEBUG    rasa_core.processor  - Received user message 'A joke please' with intent '{'name': 'A joke please', 'confidence': 1.0}' and entities '[]'
2018-10-25 21:59:54 DEBUG    rasa_core.processor  - Logged UserUtterance - tracker now has 11 events
2018-10-25 21:59:54 DEBUG    rasa_core.processor  - Current slot values: 
	name: None
2018-10-25 21:59:54 DEBUG    rasa_core.policies.memoization  - Current tracker state [{'intent_A joke please': 1.0, 'prev_action_listen': 1.0}, {'prev_utter_thanks': 1.0, 'intent_A joke please': 1.0}, {'intent_A joke please': 1.0, 'prev_action_listen': 1.0}]
2018-10-25 21:59:54 DEBUG    rasa_core.policies.memoization  - There is no memorised next action
2018-10-25 21:59:54 DEBUG    rasa_core.featurizers  - Feature 'intent_A joke please' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2018-10-25 21:59:54 DEBUG    rasa_core.featurizers  - Feature 'intent_A joke please' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2018-10-25 21:59:54 DEBUG    rasa_core.featurizers  - Feature 'intent_A joke please' (value: '1.0') could not be found in feature map. Make sure you added all intents and entities to the domain
2018-10-25 21:59:54 DEBUG    rasa_core.policies.ensemble  - Predicted next action using policy_2_KerasPolicy
2018-10-25 21:59:54 DEBUG    rasa_core.processor  - Predicted next action 'utter_thanks' with prob 0.33.
2018-10-25 21:59:54 DEBUG    rasa_core.nlg.callback  - Requesting NLG for utter_thanks from http://rasanlu:5000/parse.
2018-10-25 21:59:54 ERROR    rasa_core.processor  - Encountered an exception while running action 'utter_thanks'. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
2018-10-25 21:59:54 ERROR    rasa_core.processor  - 404 Client Error: Not Found for url: http://rasanlu:5000/parse
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/rasa_core/processor.py", line 338, in _run_action
    events = action.run(dispatcher, tracker, self.domain)
  File "/usr/local/lib/python3.6/site-packages/rasa_core/actions/action.py", line 140, in run
    tracker)
  File "/usr/local/lib/python3.6/site-packages/rasa_core/dispatcher.py", line 141, in utter_template
    **kwargs)
  File "/usr/local/lib/python3.6/site-packages/rasa_core/dispatcher.py", line 160, in _generate_response
    **kwargs)
  File "/usr/local/lib/python3.6/site-packages/rasa_core/nlg/callback.py", line 117, in generate
    response.raise_for_status()
  File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://rasanlu:5000/parse

My endpoints.yml file:

action_endpoint:
  url: http://action_server:5055/webhook

nlg:
  url: http://rasanlu:5000/parse

And credentials.yml

rest:
  # you don't need to provide anything here - this channel doesn't
  # require any credentials

A start my core container with this line:

python -m rasa_core.run --port 5005 --enable_api -d models/core/default/dialogue --credentials config/credentials.yml -c rest --endpoints config/endpoints.yml -o logs/core.log --debug

and the NLU with this:

python -m rasa_nlu.server --port 5000 -c /app/config/config_spacy_duckling.yml --path models/nlu --response_log /app/logs --debug

Could someone help me solve the problem?

Is there any way to get the log of the JSON content that CORE sends to the NLU?

hm, nlg is for your bot responses, not for nlu. so change that to nlu