Re: InvokeHTTP - no relationship invoked for 502 response

2016-10-14 Thread Jeremy Dyer
Matt - Your right about just adding a "RouteOnAttribute" processor. I got so caught up in trying to understand why a retry wasn't getting fired I lost track of my original goal. I think I have a understanding of why the "retry" was not getting fired now and that makes perfect sense. I will just

Re: InvokeHTTP - no relationship invoked for 502 response

2016-10-14 Thread Matt Burgess
This might be intended behavior, it appears that only request (incoming) flow files get routed to relationships like "retry", but you have no incoming request flow file so there is technically nothing to retry (the processor will "retry" the next time it runs). In your case it sounds like you'd

Re: InvokeHTTP - no relationship invoked for 502 response

2016-10-14 Thread Jeremy Dyer
Matt - No, I am not seeing this expected behavior. Nothing is being routed to "retry" as expected. IF I set "Always Output Response" = true the "Response" relationship is triggered and even in there you can see the "invoke.http.statuscode=502" I have attached a screenshot to show you what I mean.

Re: InvokeHTTP - no relationship invoked for 502 response

2016-10-14 Thread Matt Burgess
Jeremy, The code implies that 502 responses (actually all 5xx responses) are routed to "retry" [1]. Are you not seeing that? Regards, Matt [1]

InvokeHTTP - no relationship invoked for 502 response

2016-10-14 Thread Jeremy Dyer
I'm monitoring some micro services that sit behind an Nginx reverse proxy. The idea is simple I want to fire off an alert if I get a "502 - Bad Gateway" response from Nginx which would mean that something has caused the micro service to crash and then have NiFi attempt to restart the micro