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]
Created 07-15-2024 02:46 AM
Dears ,
Kindly note that I am trying to send InvokeHttp request as Get with the following body=
Created 10-29-2024 07:01 AM
Hi @AnikaBaykus ,
I dont think this is going to work through InvokeHttp. I recommend you use custom Groovy code through Executescript or using Curl through ExecuteStreamCommand.
Here are some links that can help you getting started:
Curl via StreamCommand:
https://community.cloudera.com/t5/Support-Questions/NiFi-Execute-Stream-Command-Curl-Call/m-p/368127
API vs Groovy script:
https://stackoverflow.com/questions/57242452/in-nifi-how-to-call-a-rest-service-using-groovy-script
ExecuteScript tutorial:
https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-1/ta-p/248922
https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-2/ta-p/249018
https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-3/ta-p/249148
If that helps please accept the solution.
Thanks
Created on 10-30-2024 01:14 AM - edited 10-30-2024 01:15 AM
Thank you @SAMSAL , we used Execute Process with a curl script file, when writing the script into the Execute Process itself, the body still did not go away. Your message helped solve the problem, 👏but unfortunately I don't have a button to mark it as a solution.😪