[Enhancement] More informative signaling error messages #216
Replies: 5 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? |
Beta Was this translation helpful? Give feedback.
-
@suggestedfixes also, which API are you referring to? The data plane APIs are limited. |
Beta Was this translation helpful? Give feedback.
-
@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. |
Beta Was this translation helpful? Give feedback.
-
@MushMal I'm referring to SignalingClient.on('error', handler); API |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions