OpenAIClient causes "channel not registered to an event loop" error when receiving a 429 response status #43583
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
Workflow: This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When using the
OpenAIClient
, if I call an endpoint which returns a 429 response with a body, I get an exception with error messagechannel not registered to an event loop
.Exception or Stack Trace
java.lang.IllegalStateException: channel not registered to an event loop
To Reproduce
Use the code below against an endpoint which returns 429
Code Snippet
Expected behavior
The client to throw a suitable exception
The text was updated successfully, but these errors were encountered: