Member since
07-01-2022
15
Posts
0
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1616 | 07-26-2022 12:31 AM | |
2691 | 07-17-2022 11:42 PM |
07-26-2022
12:31 AM
My problem was solved after using a different email id. As far as gmail settings are concerned: access to less secure apps must be turned on. IMAP access must be turned on in settings of gmail.
... View more
07-24-2022
10:52 AM
I am trying to create a flow where I extract email contents and attachments. The first step in the flow is a ConsumeIMAP processor. I have plugged in the: host name: imap.gmail.com port: 993 username: some-email-id password: .... The flowfile doesn't produce any flowfile. The "Tasks/Time" keeps increasing, but the "Out" remains 0. I have turned on authentication by less secure apps for this gmail account Is there any extra step, that I could be missing, that could be causing this? any certificate or port related stuff that I should be taking care of?
... View more
Labels:
- Labels:
-
Apache NiFi
07-22-2022
08:02 AM
Yes, I am able to connect to gmail using outlook. Yes nifi is on windows. I had already enabled 'less secure app access' on gmail. I had used 993 port, because that's what the article I have linked in my question had used. Googling around, I see 993 is the port used for IMAP.
... View more
07-22-2022
07:43 AM
@steven-matison I am unable to activate telnet on my windows. It is stuck: Any other way to check? Also is it possible to use a different port in the nifi processor's configuration and make it work?
... View more
07-22-2022
07:19 AM
After following this article, I tried to create a flow where email attachments, subject, body, to, from, cc, bcc etc. can be extracted. However the flow is not proceeding beyond the first processor: ConsumeIMAP is showing 0(0 bytes) in its Out, as shown in screenshot above.
... View more
Labels:
- Labels:
-
Apache NiFi
07-17-2022
11:42 PM
Finally, it is working as intended. Both invokehttp processors are working. This article worked for me: Chaining Multiple Http API's in Apache NiFi | Medium
... View more
07-17-2022
11:19 PM
@linssab For some reason, my second invokehttp is not working. When I got hold of the error message, it says: {"error":{"code":"InvalidAuthenticationToken","message":"CompactToken parsing failed with error code: 80049217","innerError":{"date":"2022-07-18T06:12:26","request-id":"dd8bb873-dfb8-4afe-81d8-7d19bdf61a1f","client-request-id":"dd8aa873-dfb8-4afe-81d8-7d89bdz81a5f"}}} Is there any way, to see what request the invokehttp is exactly is making..let's says as curl format, or any format. Or atleast, is it possible to view what exactly it is sending in the headers? That will help me to debug.
... View more
07-15-2022
02:11 AM
Hello @linssab Thankyou for that detailed response. I have one doubt remaining: how to use the updateattribute processor to get rid of attributes I don't need?
... View more
07-14-2022
10:32 PM
I have a flow in which I make a call using InvokeHTTP. The http call returns a JSON response. This JSON response looks like this: {
"token_type": "Bearer",
"expires_in": 3599,
"ext_expires_in": 3599,
"access_token": "eyJ0eXAiOiJKV1QiLCJub25jZSI6InAzVWN1NmRBcTNPRmVGbDM5cTVoZE9EaUpUSFRHT2hVVWdYTUNLMEsyVjQiLCJhbGciOiJSUzI1NiIsIng1dCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSIsImtpZCI6IjJaUXBKM1VwYmpBWVhZR2FYRUpsOGxWMFRPSSJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC9iZWJhN2VlNi05ZWRhLTQzZTEtOTY5OS0yMDIxYzVmOTI5NDEvIiwiaWF0IjoxNjU3NTUzNzI3LCJuYmYiOjE2NTc1NTM3MjcsImV4cCI6MTY1NzU1NzYyNywiYWlvIjoiRTJaZ1lMalI4cjV6ZWRSMHRxUkErWFdIV2QrZkJnQT0iLCJhcHBfZGlzcGxheW5hbWUiOiJhcHAtZm9yLW5pZmkiLCJhcHBpZCI6ImRlMjg0MjNmLTgxYmMtNDc5Ni1hYTU3LTIyYTM5NmJkNDliYSIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0L2JlYmE3ZWU2LTllZGEtNDNlMS05Njk5LTIwMjFjNWY5Mjk0MS8iLCJpZHR5cCI6ImFwcCIsIm9pZCI6IjAwN2EwNjkyLTg5ZjYtNDlmYi04ZDFhLTQwZGE3YjcwZjgwNSIsInJoIjoiMC5BVGdBNW42NnZ0cWU0VU9XbVNBaHhma3BRUU1BQUFBQUFBQUF3QUFBQUFBQUFBQTRBQUEuIiwicm9sZXMiOlsiU2l0ZXMuUmVhZC5BbGwiXSwic3ViIjoiMDA3YTA2OTItODlmNi00OWZiLThkMWEtNDBkYTdiNzBmODA1IiwidGVuYW50X3JlZ2lvbl9zY29wZSI6Ik5BIiwidGlkIjoiYmViYTdlZTYtOWVkYS00M2UxLTk2OTktMjAyMWM1ZjkyOTQxIiwidXRpIjoiZ3VTaG5FY0RYRWVrNGp2em1HNV9BQSIsInZlciI6IjEuMCIsIndpZHMiOlsiMDk5N2ExZDAtMGQxZC00YWNiLWI0MDgtZDVjYTczMTIxZTkwIl0sInhtc190Y2R0IjoxNTU2MjMyNzkzfQ.U1ryZqE389sKARkqQTRbFLAXAo0Ip1uaj0nEuqbKUxkswBVgMnrUbWZDJC8p6PvDSKDksMlvldXaiO6jQkrie7XYvcGGWCFSfJkH7g3VRHtD675O0NDN1yTem8mNqzKkCkDrlv5gTr7JSVFUKf155EQ-u1nCY-jwIps7MKAfpWqM393nC2uexC2tt0Fi0lVRE8NXfK_Tuk6_16a9mKATyyZE3JGBZHC1ZWQC47TcIWmmhtfMQAV3qguz-XXqeXxBtYT6LSQIJLQg5cdB1qxx4TMExmzE1U9gOScU3FPArDQQnfdzWMUH_JeYZQZG_P7JaFUWm6eSxES_YB1r9KHDMQ"
} I want to take the value of the access_token from this response, add a prefix "Bearer " to it, and plug it in to the value of a property(added by me) called "Authorization" in the next InvokeHttp processor. How should I achieve this? As is evident from my requirement, the next Invokehttp processor is dependent on this value before it can make its own http call to a different endpoint. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
07-14-2022
06:43 AM
@MattWho Below are the screenshots of the APIs and their structure.
... View more