Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

"Flow file Did not have a Valid Json content" error

avatar
New Contributor

https://stackoverflow.com/questions/58769604/not-able-to-extract-json-data-in-apache-nifi

 

I posted this query on StackOver flow.

 

I have written a CURL command with POST method and passing JSON data along with my POST request..I am trying to use HandleHttpRequest processor and then EvaluateJSONPath Processor to check for nullness of my json keys ..if json is not empty,I want to fetch the details from Database.

CURL command :

 

 

curl -v -H "Content-type: application/json" -X POST -d '{"employeeDetails":{"empid":"124","empname":"praveen"}}' http://localhost:7002

 

 

my  "EvaluateJSONPath"  processor is failing and I am getting the message "Flow file Did not have a valid JSON content" ..not able to figure out,what exactly I am missing

1 REPLY 1

avatar
New Contributor

https://stackoverflow.com/questions/58769604/not-able-to-extract-json-data-in-apache-nifi

 

I posted this query on StackOver flow.

 

I have written a CURL command with POST method and passing JSON data along with my POST request..I am trying to use HandleHttpRequest processor and then EvaluateJSONPath Processor to check for nullness of my json keys ..if json is not empty,I want to fetch the details from Database.

CURL command :

 

 

 

curl -v -H "Content-type: application/json" -X POST -d '{"employeeDetails":{"empid":"124","empname":"praveen"}}' http://localhost:7002

 

 

 

my  "EvaluateJSONPath"  processor is failing and I am getting the message "Flow file Did not have a valid JSON content" ..not able to figure out,what exactly I am missing