Skip to content

Support handling/catching websocket errors #41

@suggestedfixes

Description

@suggestedfixes

Currently, we have observed websocket errors in console mode. The context was we have a periodic check on ice connection status and aggregated connection status on the front end and make a new peer during reconnection. It might have occurred when we unplug wifi or restart the master while viewer is connected. Our question is that is there a way to catch websocket errors such as following?

chunk-vendors.79b6f08a.js:60 WebSocket connection to 'wss://v-dc297268.kinesisvideo.us-east-2.amazonaws.com/?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-ChannelARN=arn%3Aaws%3Akinesisvideo%3Aus-east-2%3A465671368404%3Achannel%2F1C8259185F66%2F1584462043105&X-Amz-ClientId=Client7869&X-Amz-Credential=ASIAWY3BNF3KHBMQBF4S%2F20200508%2Fus-east-2%2Fkinesisvideo%2Faws4_request&X-Amz-Date=20200508T141951Z&X-Amz-Expires=299&X-Amz-Security-Token=FwoGZXIvYXdzELD%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDEs8S1PdPv%2FzumBA6yKAAgiUqJC9YxgnswRryrCKBsVzVuugs8A%2F1dsIiDmTOH5whheyc672MeCMWaSGhTRJ9Vu2InHuJc5VFZMwFKPoTCVeZgp0QAhGteLLcnXYYuTFWgneIsOLcgxJFyjcTsjIRM0GF75xtNtrS1iLw9NwnodbA2WC%2F71Z7Mx9qr7JwOYG0nEjdVfcJ2G0dK%2BACu4scTKcX6fQnBw7D4Acdr1Ex%2BxVGY1WfWQwerz7uqYqhFZmNbAYvD97%2BGLuvVAU5hCc%2FB6wh4JE3PbqWbJVIIouo%2FdPvUGPSgXzwWvrknr5w1Wk698xMRk1xhWc64soTphpNHor7LWFj2Z4LwihAxzD6ZEohdXV9QUyLf23GzxiimYYTPDpLNsZPMFMR6y3qRp6FVjjKBEAT7L4CxnHuAMWlhr9wmByAA%3D%3D&X-Amz-Signature=957d365313b7622132b213236f02c3e181358ebe383ee665522432995be9a9cf&X-Amz-SignedHeaders=host' failed: Error during WebSocket handshake: Unexpected response code: 400

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions