-
Notifications
You must be signed in to change notification settings - Fork 145
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[Enhancement] More informative signaling error messages #43
Comments
@suggestedfixes Do you mind to describe what you mean by "guess" in the case? As you've mentioned here that a 400 error can be either ClientLimitExceededException or InvalidArgumentException. Doesn't that give you the error kinds? |
@suggestedfixes also, which API are you referring to? The data plane APIs are limited. |
@lherman-cs @MushMal
Now besides the client limit exceeded for 400, another thing that could go wrong is the signing of the endpoint failed due to invalid arguments. I couldn't find that data structure that holds the Amazon error type. From my limited javascript knowledge, maybe extending the Websocket object to include more attributes such as aws-error-type might work? Also from https://docs.aws.amazon.com/kinesisvideostreams-webrtc-dg/latest/devguide/kvswebrtc-websocket-apis-1.html. I might have interpreted incorrectly, seems like there is a method to capture the Exception type. I'm likely not aware of the technique that can capture the Exception Name and string. |
@MushMal I'm referring to SignalingClient.on('error', handler); API |
This will require some deeper investigation on our part, we will get back to you here once we've had a chance to investigate this. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
From time to time, we receive an error event that was implemented in the js sdk.
For example, we get status code of 400 from time to time.
From this document
https://docs.aws.amazon.com/kinesisvideostreams-webrtc-dg/latest/devguide/kvswebrtc-websocket-apis-1.html, we know that it is either ClientLimitExceededException or InvalidArgumentException. But we can only guess what the error is. It would be nice to reinterpret the Websocket Error into an Error with meaningful name.
The text was updated successfully, but these errors were encountered: