So, I'm not sure if I should report this here or r...
# ory-network
c
So, I'm not sure if I should report this here or rather make an issue in one of your github repos, but if a request to OidcApiService (or probably most the APIs) fail due to a timeout or failure in dns resolving or connection refused or whatever, thus not returning a body, the error reported from the API client is
Copy code
json: cannot unmarshal object into Go struct field ErrorOAuth2.error of type string
I feel like this could be greatly improved upon by simply checking the type of the error returned, or even reading the response into a buffer and checking its length before decoding. Any agreers? :D