Skip to content

Conversation

@Shailesh351
Copy link
Collaborator

@Shailesh351 Shailesh351 commented Oct 18, 2022

Created for testing

Closes WideChat/Rocket.Chat#1278

Clone of #75
Reverts #83

@Shailesh351
Copy link
Collaborator Author

The issues found in the main PR are

  • some events are being sent multiple times. In this file handlers/InitiateSalesforceSessionHandler.ts we are calling logHandoverFailure and checkAgentStatusCallbackError which internally send SNS event
  • when we receive response.statusCode === 204 from the API it's handled differently in different places. At one place we are sending event CHAT_CLOSED_DUE_TO_EMPTY_MESSAGE_FROM_LIVEAGENT and at other CHAT_CLOSED_LIVEAGENT_SESSION_EXPIRED

@ear-dev
Copy link

ear-dev commented Oct 20, 2022

Thanks guys.... I will test

Copy link

@ear-dev ear-dev left a comment

Choose a reason for hiding this comment

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

@Shailesh351 I tested this in preprod and it looks good. If you're good to go, I will merge. Thanks!

@ear-dev ear-dev merged commit 854a4d9 into master Oct 20, 2022
@ear-dev
Copy link

ear-dev commented Oct 20, 2022

@Shailesh351 what is this? {"close_method": "expired_session"} <- SF.app

I'm seeing a bunch of these show up during the regression tests with the testbot. I think it might be causing our close-session-method chart to not match with sessions-started. Thanks.

@Shailesh351
Copy link
Collaborator Author

@ear-dev We are sending close_method: "expired_session" when the chat is expired from the salesforce side. That is when we receive response code 403 from the salesforce

@ear-dev
Copy link

ear-dev commented Oct 21, 2022

@ear-dev We are sending close_method: "expired_session" when the chat is expired from the salesforce side. That is when we receive response code 403 from the salesforce

@Shailesh351 I'm seeing both closed_method events, 'expired_session' and 'timeout' for every timeout. Maybe we should not send an event for expired_session since we are already catching the timeout?

@Shailesh351
Copy link
Collaborator Author

@Shailesh351 I'm seeing both closed_method events, 'expired_session' and 'timeout' for every timeout. Maybe we should not send an event for expired_session since we are already catching the timeout?

@ear-dev Ohh... That's the issue. I will look into it 👍

@ear-dev
Copy link

ear-dev commented Oct 24, 2022

@Shailesh351 I'm seeing both closed_method events, 'expired_session' and 'timeout' for every timeout. Maybe we should not send an event for expired_session since we are already catching the timeout?

@ear-dev Ohh... That's the issue. I will look into it 👍

@Shailesh351 I created a new story to track and come up with a fix: WideChat/Rocket.Chat#1331

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.

[BUG] [Chat End Logging] Fix "Conversation closed:" logging as seen in a chat session transcript for escalated sessions

3 participants