Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Dont Work HttpInvoke: Put Responose Body in Attribute

avatar
Explorer

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?

1 ACCEPTED SOLUTION

avatar
Contributor

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.

View solution in original post

3 REPLIES 3

avatar
Master Mentor

@PepeClaro Can you share your processor configuration and NiFi version being used?

 

Thanks,

Matt

avatar
Explorer

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

PepeClaro_0-1664807473116.pngPepeClaro_1-1664807502698.pngPepeClaro_2-1664807541125.pngPepeClaro_3-1664807569839.png

 

avatar
Contributor

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.