"TypeError: Cannot read property 'match' of null" on both the cloudant nodes
threecubet opened this issue · 11 comments
Can you double click the "AddFromEMailToPayload" node and provide the contents pls?
msg.temppayload = msg.payload msg.payload = msg.header.from.value[0].address return msg;
this is what the content is
Looks like msg.header.from.value[0].address is null. Please confirm what is the value of msg.header.from.value[0].address.
In the above image.
In the debug tab the second object description shows the response from the function
from: object value: array[1] 0: object address: "akhil.raj@cubettech.com"
Is the cloudant database, customer_data, populated with the email id "akhil.raj@gmail.com" as _id?
yes it is
I get this error whenever i deploy the flow even before sending an email.
Ok. What happens if you ignore the error and then send an email. Do you still get that error?
ya it wont work, shows up with the same issue
Ok, just to eliminate Cloudant database issue, can I suggest you to inject your own text, instead of email, and then check if data is getting updated in Cloudant DB? Let's narrow down if Cloudant is causing the issue here.
Hi. Were you able to resolve this issue? An alternate option to fix this issue is to use cloudant database that was created as part of node-red service.