Closed aburkowsky9 closed 10 months ago
Hey @aburkowsky9, thanks for the detailed write-up, it's very much appreciated. We should clarify that error 31005
is not phased-out or legacy, but that there are now alternative error codes when applicable. To explain, if the SDK can describe an error more precisely, it will attempt to do so. But if there is no "more precise" error, then the SDK will still emit 31005
. For example, when the websocket connection is lost due to network failure. The browser does not give much information on why the websocket is lost, and we fall back to generic error code 31005
. Is there any special case to reproduce the error that you're seeing?
Thanks for clarifying @mhuynh5757. I reproduce this case by putting my computer to sleep when the device is instantiated and registered.
Code to reproduce the issue:
Expected behavior: Device error codes that match those stated in the latest release notes using the
enableImprovedSignalingErrorPrecision
flag: https://github.com/twilio/twilio-voice.js/releases/tag/2.8.0Actual behavior:
I have not seen any change in Device error codes after using the new
enableImprovedSignalingErrorPrecision
flag. In fact I see what is stated to be a legacy call error code31005
at the top level and the legacy device error code53000
in the deepertwilioError
object. This is the exact same with the flag on and off. I never see the reported newly implemented error codes.The following is captured using the device event listener for
error
-Software versions: