Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make action server connection error message more descriptive #11123

Merged

Conversation

indam23
Copy link
Contributor

@indam23 indam23 commented May 16, 2022

Proposed changes:

  • Make the exception raised when the action server cannot be reached more descriptive

Status (please check what you already did):

  • updated some tests for the functionality
  • updated the documentation
  • updated the changelog (please check changelog for instructions)
  • reformat files using black (please check Readme for instructions)

@indam23 indam23 requested a review from a team as a code owner May 16, 2022 12:04
@indam23 indam23 requested review from losterloh and removed request for a team May 16, 2022 12:04
@indam23 indam23 requested a review from a team May 16, 2022 12:06
@@ -548,7 +548,7 @@ async def test_remote_action_endpoint_not_running(

with pytest.raises(Exception) as execinfo:
await remote_action.run(default_channel, default_nlg, default_tracker, domain)
assert "Failed to execute custom action." in str(execinfo.value)
assert "Failed to execute custom action" in str(execinfo.value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we now omitting the final period .? Do we have a policy for formatting log messages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Omitting here because in the messages the test checks, it is now followed by other words - it's no longer a standalone sentence. Otherwise log messages should end with a period.

@indam23 indam23 enabled auto-merge (squash) May 17, 2022 07:27
@github-actions
Copy link
Contributor

🚀 A preview of the docs have been deployed at the following URL: https://11123--rasahq-docs-rasa-v2.netlify.app/docs/rasa

@indam23 indam23 merged commit bc2b1cb into main May 17, 2022
@indam23 indam23 deleted the ATO-90-make-exception-for-unreachable-action-server-descriptive branch May 17, 2022 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants