Skip to content

[STREAM-850] - Suppressing benign error so it does not show up on UI and cause confusion#940

Merged
maxwellmooney13 merged 3 commits intodevelopfrom
STREAM-850
Aug 25, 2025
Merged

[STREAM-850] - Suppressing benign error so it does not show up on UI and cause confusion#940
maxwellmooney13 merged 3 commits intodevelopfrom
STREAM-850

Conversation

@maxwellmooney13
Copy link
Copy Markdown
Collaborator

No description provided.

callState: ICallStateFromParticipant
): void {
if (callState.errorInfo) {
if (callState.errorInfo.code === 'error.ininedgecontrol.session.inactive' && callState.errorInfo.message.includes('is inactive for')) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'll be honest, I'm not entirely sure if this is the best check... I'm not 100% sure if just checking the code is sufficient so I added a check for the message too but I'm not sure if that is the best check either. I imagine we would get the translated version in the case of using a different language?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure these errors get translated, but I think I would lean towards just checking the code since that seems less likely to change over time.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think any of our error messaging is translated at this level but we shouldn't be checking for error text and should just check for the error code.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

My concern was just checking the error code would result in us swallowing non-benign errors that we actually wanted to show. Are we fine to just check the code without other errors being affected? I agree with both of you guys though.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Do we know if this error code comes back for any other errors? I'm not sure why it would.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I don't think we do know. I couldn't find an explanation of errors or anything like that. But if we wanna give it a try to just swallow this type of error code, I'm down to try.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Probably worth asking the Edge guys.

callState: ICallStateFromParticipant
): void {
if (callState.errorInfo) {
if (callState.errorInfo.code === 'error.ininedgecontrol.session.inactive' && callState.errorInfo.message.includes('is inactive for')) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think any of our error messaging is translated at this level but we shouldn't be checking for error text and should just check for the error code.

Comment thread changelog.md Outdated

# [Unreleased](https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/compare/v11.3.0...HEAD)
# Changed
* [STREAM-850](https://inindca.atlassian.net/browse/STREAM-850) - Suppress benign error to not show on consumer UI
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can this be more descriptive? It just makes it easier to check the changelog and see what was changed if debugging an issue. Something like "Suppress error.ininedgecontrol.session.inactive errors to prevent UIs from presenting benign errors.

callState: ICallStateFromParticipant
): void {
if (callState.errorInfo) {
if (callState.errorInfo.code === 'error.ininedgecontrol.session.inactive') {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what we'd log, but I do wonder if its worth adding a debug log that says we're ignoring this benign error. Probably not a big deal to not add though.

@maxwellmooney13 maxwellmooney13 merged commit 2d86ade into develop Aug 25, 2025
21 checks passed
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.

3 participants