deepgram-dotnet-sdk
deepgram-dotnet-sdk copied to clipboard
Improve Handling of `WebSocketException` errors for Self Hosted
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.