Azure / azure-functions-dapr-extension

Extension for interacting with Dapr APIs from an Azure Function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle non successful http error codes

amanbha opened this issue · comments

For http calls made to Dapr runtime, when an error is encountered, an error json is returned in http response body. The json contains an error code and an descriptive error message,
https://github.com/dapr/docs/blob/master/reference/api/error_codes.md

Wrap the actual calls for httpClient.SendAsync in a helper method and use the error info to throw a more meaningful DaprException