i have a question: I have made HTTP GET that gives me a PDF back.
This works fine, but how i can send these PDF with the Email Node.
This message comes:
ERROR: Response body is not valid JSON. Change “Response Format” to “String”
Error: Response body is not valid JSON. Change "Response Format" to "String"
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest.node.js:740:31)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:370:47
Then i change to String, in the string Data i see the PDF, then it would be nice to send these as attachemend.
Sorry do not totally understand what you mean especially with the PDF download seeming to work fine but you then have issues afterward.
Anyway from the things I see. If you download a binary file (like PDF) you have to set the on the HTTP Request Node the option “Response Format” to “File” as you expect a file.
To the second part. Yes, email attachments are always binary as written in the description of the “Attachments” parameter. Name of the binary properties which contain data which should be added to email as attachment. Multiple ones can be comma separated.
So if you leave the default value “data” in the parameter “Binary Property” on the HTTP Request-Node you would have to set “Attachments” on the EMail-Node also to “data”.