amazon-connect / amazon-connect-chat-interface

Amazon Connect Chat Interface - a browser-based customer chat widget for your website integrating with Amazon Connect ChatJS
https://docs.aws.amazon.com/connect/latest/adminguide/what-is-amazon-connect.html
MIT No Attribution
36 stars 39 forks source link

AccessDeniedException when clicking End Chat #128

Closed jjwilliams42 closed 1 year ago

jjwilliams42 commented 1 year ago

When embedding the chat interface into our website - everything works fine until hitting "End Chat" - at that point the spinner comes up and the console displays the following error:

image

And the spinner never goes away.

The POST to the disconnect endpoint works fine:

image

But it seems the POST to the participant event endpoint fails:

image

spencerlepine commented 1 year ago

Hi @jjwilliams42, thank you for taking the time to raise this issue. This is could be an error with the underlying ChatJS library, but we may need more details to investigate. At this time, the team does not have a solution to resolve your issue.

Can you provide more details about your setup?

I am not sure how to reproduce this, would you be able to include steps to repro this issue as well?

https://github.com/amazon-connect/amazon-connect-chat-interface/assets/60903378/7980fda4-0355-4722-9559-6b206eb77226

https://github.com/amazon-connect/amazon-connect-chat-interface/assets/60903378/420acc6c-fef9-43be-883f-241779b005fa

Reference: we have public documentation for common errors, but this error is not covered there currently

mliao95 commented 1 year ago

Hi @jjwilliams42,

I wanted to check in to see if you are still facing this issue. If you are, we would love to help but would need some more details about your setup. Thanks!

mhiaror commented 1 year ago

No response from Customer; Closing issue. @jjwilliams42, feel free to re-open with more details if you are still facing this issue.

pespinozadi commented 1 year ago

Hi @jjwilliams42, thank you for taking the time to raise this issue. This is could be an error with the underlying ChatJS library, but we may need more details to investigate. At this time, the team does not have a solution to resolve your issue.

Can you provide more details about your setup?

  • Are you experiencing this issue with the Amazon Connect OOTB widget (Documentation), or a custom chat interface UI that you are building?
  • Has this impacted any other chat functionality that is block this use case?
  • Is this error occurring for every single chat widget rendering on your website?
  • Is this preventing the user from starting a new chat even after closing/opening the widget?
  • What POST /participant/event request is being sent?

I am not sure how to reproduce this, would you be able to include steps to repro this issue as well?

reprotest.mov ccp.test.mov

Reference: we have public documentation for common errors, but this error is not covered there currently

Hi, I want to reopen this issue. Have the same problem.

  • Are you experiencing this issue with the Amazon Connect OOTB widget (Documentation), or a custom chat interface UI that you are building? Custom Chat Interface UI, with customChatWidget.
  • Has this impacted any other chat functionality that is block this use case? No, only this one.
  • Is this error occurring for every single chat widget rendering on your website? Yes, only if user exit widget without response.
  • Is this preventing the user from starting a new chat even after closing/opening the widget? No, it closes normally.
  • What POST /participant/event request is being sent? image image

I know that this type of read event cannot be sent after disconnection, because of the token, but, it happens after disconnection. It only happens 1 time after disconnecting, it is not a loop.