-
Notifications
You must be signed in to change notification settings - Fork 355
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
fix(new-metrics): add TypeError #3527
Open
nataliadelmar
wants to merge
3
commits into
webex:beta
Choose a base branch
from
nataliadelmar:fix-expected-meeting-info-response
base: beta
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ export const MISSING_ROAP_ANSWER_CLIENT_CODE = 2007; | |
export const DTLS_HANDSHAKE_FAILED_CLIENT_CODE = 2008; | ||
export const ICE_FAILED_WITH_TURN_TLS_CLIENT_CODE = 2010; | ||
export const ICE_FAILED_WITHOUT_TURN_TLS_CLIENT_CODE = 2009; | ||
export const TYPE_ERROR_CLIENT_CODE = 2011; | ||
export const WBX_APP_API_URL = 'wbxappapi'; // MeetingInfo WebexAppApi response object normally contains a body.url that includes the string 'wbxappapi' | ||
|
||
export const WEBEX_SUB_SERVICE_TYPES: Record<string, ClientSubServiceType> = { | ||
|
@@ -33,7 +34,6 @@ const BROWSER_MEDIA_ERROR_NAMES = { | |
NOT_FOUND_ERROR: 'NotFoundError', | ||
OVERCONSTRAINED_ERROR: 'OverconstrainedError', | ||
SECURITY_ERROR: 'SecurityError', | ||
TYPE_ERROR: 'TypeError', | ||
}; | ||
|
||
export const BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP = { | ||
|
@@ -44,7 +44,6 @@ export const BROWSER_MEDIA_ERROR_NAME_TO_CLIENT_ERROR_CODES_MAP = { | |
[BROWSER_MEDIA_ERROR_NAMES.NOT_FOUND_ERROR]: 2729, // User did not grant permission | ||
[BROWSER_MEDIA_ERROR_NAMES.OVERCONSTRAINED_ERROR]: 2729, // Thrown if the specified constraints resulted in no candidate devices which met the criteria requested. | ||
[BROWSER_MEDIA_ERROR_NAMES.SECURITY_ERROR]: 2729, // Thrown if user media support is disabled on the Document on which getUserMedia() was called. The mechanism by which user media support is enabled and disabled is left up to the individual user agent. | ||
[BROWSER_MEDIA_ERROR_NAMES.TYPE_ERROR]: 2729, // Thrown if the list of constraints specified is empty, or has all constraints set to false. This can also happen if you try to call getUserMedia() in an insecure context, since navigator.mediaDevices is undefined in an insecure context. | ||
}; | ||
|
||
export const SDP_OFFER_CREATION_ERROR_MAP = { | ||
|
@@ -127,6 +126,7 @@ export const ERROR_DESCRIPTIONS = { | |
ICE_FAILED_WITH_TURN_TLS: 'ICEFailedWithTURN_TLS', | ||
SDP_OFFER_CREATION_ERROR: 'SdpOfferCreationError', | ||
SDP_OFFER_CREATION_ERROR_MISSING_CODEC: 'SdpOfferCreationErrorMissingCodec', | ||
TYPE_ERROR: 'TypeError', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did you add it under SDP section? Is TypeError not a generic thing? |
||
}; | ||
|
||
export const SERVICE_ERROR_CODES_TO_CLIENT_ERROR_CODES_MAP = { | ||
|
@@ -395,6 +395,11 @@ export const CLIENT_ERROR_CODE_TO_ERROR_PAYLOAD: Record<number, Partial<ClientEv | |
category: 'network', | ||
fatal: true, | ||
}, | ||
[TYPE_ERROR_CLIENT_CODE]: { | ||
errorDescription: ERROR_DESCRIPTIONS.TYPE_ERROR, | ||
category: 'other', | ||
fatal: true, | ||
}, | ||
2050: { | ||
errorDescription: ERROR_DESCRIPTIONS.SDP_OFFER_CREATION_ERROR, | ||
category: 'media', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not really an error code