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

Unknown HttpResponseMessages in GenericRetrier.ShoulRetryOnHttpResponse

Open ophirKatz opened this issue 8 months ago • 1 comments

Hi! I'm trying to parallelize access to resources with IdentityDomainsClient and sometimes getting unknown responses from the api so the SDK fails with weird exceptions at Oci.Common.Http.Internal.ResponseHelper.HandleNonSuccessfulResponse:

  1. Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0
  2. System.InvalidCastException: Unable to cast object of type 'System.String' to type 'ErrorCodeAndMessage'

Has anyone else encountered these errors? would love some help!

I can provide a fuller stack trace if needed

Thanks!

ophirKatz avatar Mar 31 '25 14:03 ophirKatz

Still happening in newer versions. I suspect it's a backend issue sending the response not in the way the client (my app) requests.

ophirKatz avatar Apr 22 '25 13:04 ophirKatz