Skip to main content

I have 2 Mule Applications. The first one ( APP 1 ) makes an http call ( http request ) to the second ( APP 2 ).

When an error occurs in APP 2 I'm handling it ( On error propagate ) and generate a variable with the http status and a payload with the error message.

In APP2 Listener Error Response I'm setting Error Response as this:

How to handle error message between Mule Applications?vars.testVariable is a variable that contains a JSON error message.

 

In APP 1 I'm trying to handle the error to return the message I generate in APP 1 but I only can get the http status.

 

Anyway to get the error message generated in APP2?

 

One thing I try is to handle the error in APP 2 with "On error continue" option and in APP 1 choice the http status, but I think this is not good solution.

 

Regards!

4 réponses
  1. 4 déc. 2023, 09:38

    I'm trying setting payload:

    I'm trying setting payload: then, setting the listener response to return payload: but when app1 request gets the error, no payload or error body exists. 

    then, setting the listener response to return payload:

    app2_listener_response_v2 

    but when app1 request gets the error, no payload or error body exists.

0/9000