Created 09-30-2022 12:44 PM
Hi people
I am working with HttpInvoke processor with Post and I try to catch the response body using the propertie "Put Response Body in attribute", the processor execute well and it generate the response on the queue Response but it dosent generate the attribute. Someone has some idea where is my error?
Created on 10-04-2022 12:13 AM - edited 10-04-2022 03:36 AM
ResultInvoke in this case doesn't have any value, it's sent as a header with '${invokehttp.status.code}' as a value in http request.
To assign status code to ResultInvoke use UpdateAttribute after the InvokeHTTP.
Created 09-30-2022 02:09 PM
Created on 10-03-2022 07:36 AM - edited 10-03-2022 08:51 AM
Hi MattWho
I send the image of my configuration.
You can see on the final of my configuration that I am trying to use to new atrribute and to assing it the value ${invokehttp.status.code} but it dosent work too.
My version NiFi is 1.16.3
Created on 10-04-2022 12:13 AM - edited 10-04-2022 03:36 AM
ResultInvoke in this case doesn't have any value, it's sent as a header with '${invokehttp.status.code}' as a value in http request.
To assign status code to ResultInvoke use UpdateAttribute after the InvokeHTTP.