Refit.ApiException at System.Text.Json.Serialization.JsonCollectionConverter

67 Views Asked by At

I am using Refit to call APIs in .NET 7.0

System.Text.Json.Serialization.JsonCollectionConverter throws exception when the response returned in empty.

It works fine when result contains data.

I think when when result is returned in list it works fine but for empty result {} is unable to being convert into empty array so it fails.

Anyone who could suggest solution ?

0

There are 0 best solutions below