Repository: RasaHQ/rasa

Issue:
IL doesn't have a default endpoints path `endpoints.yml`
If I use `rasa shell` with my action server running and duckling server running, everything works as expected. If I use `rasa interactive`, the form action doesn't work .
```
? The bot wants to run 'restaurant_form', correct?  Yes
2019-07-08 16:18:42 ERROR    rasa.core.processor  - Encountered an exception while running action 'restaurant_form'. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
------
Chat History
...
------
? The bot wants to run 'utter_slots_values', correct?  (Y/n)
```
There is no information in the action server on debug mode, no `received request to run restaurant_form`, so something is happening so the request doesn't hit the action server.

Discussion:
CLAassistant: [![CLA assistant check](https://cla-assistant.io/pull/badge/not_signed)](https://cla-assistant.io/RasaHQ/rasa?pullRequest=3960) <br/>Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our [Contributor License Agreement](https://cla-assistant.io/RasaHQ/rasa?pullRequest=3960) before we can accept your contribution.<br/><hr/>**Ella** seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please [add the email address used for this commit to your account](https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user).<br/><sub>You have signed the CLA already but the status is still pending? Let us [recheck](https://cla-assistant.io/check/RasaHQ/rasa?pullRequest=3960) it.</sub>

Patch:
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index ac7a15fc46a..e333c5020e0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -39,6 +39,7 @@ Fixed
   interactive learning
 - ``rasa train`` now also includes NLU files in other formats than the Rasa format
 - ``rasa train core`` no longer crashes without a ``--domain`` arg
+- ``rasa interactive`` now looks for endpoints in ``endpoints.yml`` if no ``--endpoints`` arg is passed
 
 
 [1.1.4] - 2019-06-18
diff --git a/rasa/cli/interactive.py b/rasa/cli/interactive.py
index 6c0ccfe2aa9..1fc10f4bcaa 100644
--- a/rasa/cli/interactive.py
+++ b/rasa/cli/interactive.py
@@ -10,7 +10,11 @@ from rasa import data, model
 
 # noinspection PyProtectedMember
 from rasa.cli.utils import get_validated_path, print_error
-from rasa.constants import DEFAULT_DATA_PATH, DEFAULT_MODELS_PATH
+from rasa.constants import (
+    DEFAULT_DATA_PATH,
+    DEFAULT_MODELS_PATH,
+    DEFAULT_ENDPOINTS_PATH,
+)
 from rasa.model import get_latest_model
 
 
@@ -78,6 +82,10 @@ def perform_interactive_learning(args, zipped_model):
             args.core, args.nlu = model.get_model_subdirectories(model_path)
             stories_directory = data.get_core_directory(args.data)
 
+            args.endpoints = get_validated_path(
+                args.endpoints, "endpoints", DEFAULT_ENDPOINTS_PATH, True
+            )
+
             do_interactive_learning(args, stories_directory)
     else:
         print_error(
diff --git a/rasa/core/actions/action.py b/rasa/core/actions/action.py
index 8eafa893d36..5ee35635097 100644
--- a/rasa/core/actions/action.py
+++ b/rasa/core/actions/action.py
@@ -380,14 +380,16 @@ class RemoteAction(Action):
         json_body = self._action_call_format(tracker, domain)
 
         if not self.action_endpoint:
-            raise Exception(
-                "The model predicted the custom action '{}' "
+            logger.error(
+                "The model predicted the custom action '{}', "
                 "but you didn't configure an endpoint to "
                 "run this custom action. Please take a look at "
-                "the docs and set an endpoint configuration. "
+                "the docs and set an endpoint configuration via the "
+                "--endpoints flag. "
                 "{}/core/actions"
                 "".format(self.name(), DOCS_BASE_URL)
             )
+            raise Exception("Failed to execute custom action.")
 
         try:
             logger.debug(
@@ -413,7 +415,7 @@ class RemoteAction(Action):
                 exception = ActionExecutionRejection(
                     response_data["action_name"], response_data.get("error")
                 )
-                logger.debug(exception.message)
+                logger.error(exception.message)
                 raise exception
             else:
                 raise Exception("Failed to execute custom action.") from e


Test patch:
diff --git a/tests/core/test_actions.py b/tests/core/test_actions.py
index 1924a50d70c..b0fe5d4d84a 100644
--- a/tests/core/test_actions.py
+++ b/tests/core/test_actions.py
@@ -201,7 +201,7 @@ async def test_remote_action_without_endpoint(
         await remote_action.run(
             default_channel, default_nlg, default_tracker, default_domain
         )
-    assert "you didn't configure an endpoint" in str(execinfo.value)
+    assert "Failed to execute custom action." in str(execinfo.value)
 
 
 async def test_remote_action_endpoint_not_running(