fieldViolations": [\n {\n "description": "Invalid JSON payload received. Unknown name \"\": Root element must be a message."
The exact body works perfectly in POSTMAN, but here it does not work. Looks like something is missing params/body. Please suggest the right syntax or such feature is not supported?
Below in code quote there is the complete error message from the log file.I do not have as such description field/event in source, that description is given by the API service to describe the error.
I think it will be nicer if you have any working conf file with REST Filter which uses method as 'post" and while posting it uses body to post the message to get the response.
Here the body should act as complete json, if you have any working example for REST filter then i think it can solve my problem
Thanks
{
: request = > [ : post, "https://abc.com", {
: headers = > {
"Authorization" = > "ya29.GlxdBqDTNQNJ4qHBFQVr3byMTmFofKKrsoZ3tM6XCDQ-W3ysrjOL9bl_4hGwAhirD-YHgtTtFbcUjt6jlsR-dpTxsIn4Hw6Fpnt_r0IAi9wq-"
},
: body = > ""{\n\t'reportRequests' :\n\t[{\n\t\t\t'checkid' : '2345678',\n\t\t\t'dateRanges' : [{\n\t\t\t\t\t'endDate' : '2018-11-12',\n\t\t\t\t\t'startDate' : '2018-11-01'\n\t\t\t\t}\n\t\t\t],}""
}
],
: json = > true,
: code = > 400,
: body = > "{\n "error": {\n "code": 400,\n "message": "Invalid JSON payload received. Unknown name \"\": Root element must be a message.",\n "status": "INVALID_ARGUMENT",\n "details": [\n {\n "@type": "abc.com.rpc.BadRequest",\n "fieldViolations": [\n {\n "description": "Invalid JSON payload received. Unknown name \"\": Root element must be a message."\n }\n ]\n }\n ]\n }\n}\n",
: client_error = > nil
}
This is how you do a HTTP-Poller request - Note your header will not work because you do not have a field called %{access} yet - you need to input this manually
Ah I see, I do not have any experience of this plugin unfortunately. I see that you are trying to do a nested body which does not look to be supported, I think this is the issue.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.