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

initiateChat failure2 #20

Closed
iamgokul46 opened this issue Jul 6, 2020 · 1 comment
Closed

initiateChat failure2 #20

iamgokul46 opened this issue Jul 6, 2020 · 1 comment

Comments

@iamgokul46
Copy link

I am trying to customize the default demo website and start the chat from customized website. I have changed the form, added few styles when i click on startchat . The website starts loading but it doesn't initiate chat. In inspect console it is "initiateChat failure2" error.

@efh365
Copy link
Contributor

efh365 commented Aug 3, 2020

This typically happens due to the backend thinking that the previous chat is still active. This happens in one of two scenarios:

  1. You end a chat and then try to start a new one within a few seconds.
    This happens because the DDB marks a chat as active until the chat transcript is dumped in S3. This takes about 30 seconds to happen so there is a delay in when the chat is marked as complete. You can update your solution to instead mark the chat as completed as a response to the chat ended event

  2. You are never able to start a new chat after starting your first one.
    This is probably due to the S3 trigger not being configured properly. If the S3 trigger from the chat transcript bucket is misconfigured, there is never an event generated that updates the DDB saying that the chat has completed. As a result the frontend is always pulling an expired chat.

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

No branches or pull requests

2 participants