Closed lamarios closed 6 months ago
I was able to reproduce this problem, but unfortunately this is a Gmail specific issue, when Gmail IMAP server responds with "Some messages could not be FETCHed (Failure)
" when it couldn't provide the specific email part (attachment).
I only got this error when specified "1.1" or "1.2" as "Attachment Part ID" instead of "2". Please check if you specify correct attachment part number (usually starts from 2).
I also updated the node (v1.1.1), so it will display IMAP server errors in the error description.
yeah I specified the part id properly, from the attachmentInfo data:
Edit: I updated the node, but the error is the same. Do i need to restart or something ? I'm fairly new to n8n
Edit: I updated the node, but the error is the same. Do i need to restart or something ? I'm fairly new to n8n
Yes, you need to restart n8n after updating community nodes
i'm getting this:
NodeApiError: IMAP server has not returned attachment info
at Object.executeImapAction (/home/node/.n8n/nodes/node_modules/n8n-nodes-imap/nodes/Imap/operations/email/functions/EmailDownloadAttachment.ts:63:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Object.execute (/home/node/.n8n/nodes/node_modules/n8n-nodes-imap/nodes/Imap/Imap.node.ts:75:24)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:696:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:656:53
same email as above.
Does it show the IMAP server response? It should be in the error description.
owh i think i know why. I was using the wrong credentials, I didn't realize that downloading attachments required credentials. i thought it would know where to get from based on the inputs. Meanwhile i switched to use the gmail nodes directly, I'll try again with your node and see.
Yeah all working, sorry for the trouble, it was my issue from the beginning. Great project though, thanks :)
Yeah all working, sorry for the trouble, it was my issue from the beginning. Great project though, thanks :)
Glad to hear! Also your input helped identify a minor bug, which is now fixed (correctly handling empty/bad response from server).
Hi,
I'm getting the following error:
When trying to retrieved attached file from gmail. Heres the json input :