Member since
04-01-2021
2
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3868 | 04-04-2021 04:29 PM |
04-04-2021
04:29 PM
Hello, I got this resolved, the issue was with respect to the format of flowfile being forwarded to the invokehttp proessor. in order to send post body in form type it is necessary that you convert the format of the flowfile as just file, eg , if the flowfile is "package.json" we need to convert that into just "package". from above issue i kept everything same except i just added on attribute in updateattribute processor as shown in below pic -
... View more
04-01-2021
09:46 AM
Hi , I have created 2 flows - 1] in this flow i have used GenerateFlowFile->UpdateAttribute->InvokeHttp GenerateFlowFile config- Dataformat = text CustomText = Science is magic$$@@ i love Data ## UpdateAttribute config - mime.type = application/x-www-form-urlencoded InvokeHttp config - HTTP method = POST and this works super fine . But when i use this with gettwitter it fails as shown in below - 1] GetTwitter is working fine - 2] EvaluateJsonPath - 3] AttributeTOJson- 4] UpdateAttribute- 5] ReplaceText - 6] InvokeHTTP - this is the error i am getting - but if i set empty text at this from invokehttp processor - then this error goes away but the api responds with missing api_key and text - Somebody pls help, this is eating my head up . thanks in advance
... View more
Labels:
- Labels:
-
Apache NiFi