Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Highlighted

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

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

"Flow file Did not have a valid JSON content" Error

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

Don't have an account?
Coming from Hortonworks? Activate your account here