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
). This gives the requesting party the assumption that the service is currently not capable of handling the request but maybe it will be able to do so in the future. So when you receive a 503, you might continuously retry doing the request until the server will become ready which might never happen in case you constantly send faulty data.
Preferred behavior would be to return a more suitable error, like just using the status code of the outgoing request when it fails.
The text was updated successfully, but these errors were encountered:
sophokles73
changed the title
custom mapper should not always return a 503 when the mapping fails
Ccustom mapper should not always return a 503 when the mapping fails
Jan 27, 2024
The logic for invoking a custom mapper for upstream commands has been adapted
to consider the (failure) status code returned by the mapper when generating a corresponding
ServiceInvocationException to be sent back in the reply to the downstream sender.
fixes#3609
When using a custom http mapper the
HttpBasedMessageMapping
will always return a 503 code when the mapping fails (hono/adapters/mqtt-base/src/main/java/org/eclipse/hono/adapter/mqtt/impl/HttpBasedMessageMapping.java
Line 253 in e2fd864
Preferred behavior would be to return a more suitable error, like just using the status code of the outgoing request when it fails.
The text was updated successfully, but these errors were encountered: