You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrading the Java Dapr SDK from 1.11 to 1.12 changed the exception handling behaviour in Http Binding where the errorIfNot2XX flag is set to false.
ie: When service A calls service B and B throws an error:
Dapr SDK 1.11
A gets the error status code (eg 400) and the error response body.
Dapr SDK 1.12
A gets the status code (eg 405) as part of the response body itself and overall http request status is 200.
They are mentioning that they now need to parse the response body manually in order to evaluate whether the call fetched a successful response or an exception.
Here is the code:
The change to make this work was not added to master branch after 1.11, so it was not added to 1.12. I am working to porting this change over, just need to re-do some of it given all the code conflicts. Sorry.
Actual Behavior
Upgrading the Java Dapr SDK from 1.11 to 1.12 changed the exception handling behaviour in Http Binding where the errorIfNot2XX flag is set to false.
ie: When service A calls service B and B throws an error:
Dapr SDK 1.11
A gets the error status code (eg 400) and the error response body.
Dapr SDK 1.12
A gets the status code (eg 405) as part of the response body itself and overall http request status is 200.
They are mentioning that they now need to parse the response body manually in order to evaluate whether the call fetched a successful response or an exception.
Here is the code:
Is this a bug or was this change planned? This is likely due to the way the change in the java sdk returning status object and not httpStatusCode .
The text was updated successfully, but these errors were encountered: