AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

ws request timeout, type: traffic_stats #81

Closed utsavtiwary04 closed 4 years ago

utsavtiwary04 commented 4 years ago

Describe the bug

Getting this error from the user's device that says "TimeoutError: Request timed out : ws request timeout, type: traffic_stats"

Channel: C923-Ld4ac

UID: 101

Platform and Browser: Chrome, Windows 7

SDK Version: Web SDK NG

To Reproduce

No specific steps to reproduce. Consistently seeing this error in console which might be disrupting user experience during a video conferencing call. Can you please help ?

utsavtiwary04 commented 4 years ago

@disoul @HAHAHA44 Hello people ! Can you please help here ? Many thanks !

HAHAHA44 commented 4 years ago

This may be because the user's network condition was not good at the time or the user`s network connection is changed, which caused the messages sent by Websocket to time out. This error will not occur when the network is in good condition.

utsavtiwary04 commented 4 years ago

Understood @HAHAHA44 -- What do you recommend for handling this ? Which event handler would be useful for reconnecting ?

HAHAHA44 commented 4 years ago

The SDK will automatically reconnect so that you don't need to do anything for reconnect. You can listen the connection-state-change event on the client to get the connection state.