Skip to content

[Webchat] Prevent chatting until all the servers are up #13

@ivan-karlovich

Description

@ivan-karlovich

Description

When starting the app by running make_install, webchat opens before Rasa server is up. In case a user tries to chat with a bot, the bot does not respond and the following error occurs:

requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8002): Max retries exceeded with url: /webhooks/rest/webhook (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f7629e0d9a0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Suggestion for improvement

One of the solutions to the issue can be:

  • Display a loader in the webchat until all the servers are up.
  • Do not open webchat until the servers is up. Note. It will not work if a user decides to open the webchat manually.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions