I have an issue with InvokeHttp processor in Apache NiFi. I want to get a message when timeout occurs while trying to connect to REST API (via GET request). According to documentation of failure relationship:
The original FlowFile will be routed on any type of connection failure, timeout or general exception. It will have new attributes detailing the request.
I've created a test endpoint which replies after 20s, and I tried to send requests with read timeout and connection timeout lower that 20s, but no matter what params of the processor I change it doesn't produce any messages. There is an error in bulletin:
Yielding processor due to exception encountered as a source processor: java.net.SocketTimeoutException: Read timed out: java.net.SocketTimeoutException: Read timed out
So I assume NiFi recognizes it as a timeout, but fails to send message to failure relationship. has anyone encountered such issue? Or is my config wrong somehow?
That's my config: config_part_1 config_part_2