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
Using Apigee Edgemicro version 2.3.3 (latest release at this time), If I call an API proxy that exists in Apigee Cloud but this API proxy has an unavailable target endpoint, NONE of the "onresponse hooks" are called and the onerror_request is called.
Using Apigee Edgemicro version 2.3.3 (latest release at this time), If I call an API proxy that exists in Apigee Cloud but this API proxy has an unavailable target endpoint, NONE of the "onresponse hooks" are called and the onerror_request is called.
However, in
onerror_request: function(req, res, err, next)
hook, theerr
parameter comes with NULL value, therefore its not possible to handle the error. This was previously discussed in the community forums, onerror_request and onerror_response hooks in custom plugins to handle errors .Ex.: If I call:
where /ping as a unavailable target endpoint.
and in my plug-in, simply get the err parameter and print out:
i got the response in the EMG logs:
Thanks!
The text was updated successfully, but these errors were encountered: