deepgram / deepgram-dotnet-sdk

.NET SDK for Deepgram's automated speech recognition APIs.
https://developers.deepgram.com
MIT License
33 stars 31 forks source link

Improve Handling of `WebSocketException` errors for Self Hosted #339

Open jpvajda opened 1 month ago

jpvajda commented 1 month ago

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 commented 1 month ago

@jkroll-deepgram / @dvonthenen 👋