deepgram-dotnet-sdk icon indicating copy to clipboard operation
deepgram-dotnet-sdk copied to clipboard

Improve Handling of `WebSocketException` errors for Self Hosted

Open jpvajda opened this issue 4 months ago • 1 comments

Users can set max_active_requests for for self-hosted deployments, (on-prem) as a configuration option in their TOML file.

When this is limit is hit they get a

WebSocketException with this message: "The server returned status code '429' limit exceeded, when status code '101' was expected."

We want to better surface a 429 status code so they can handle it on the server side using this SDK.

jpvajda avatar Sep 30 '24 17:09 jpvajda