Hello this is my configuration :
i m on premise :
n8n version: : 1.64.3
Database (default: SQLite): Postgress
n8n EXECUTIONS_PROCESS setting (default: own, main): : default
Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
Operating system: : Debian 12
Hello,
when i do my http agent node i got this return
what is wrong and how to fix it ?
I don’t understand your question. I see that you import data in json and want to change it to xml, but I don’t see what the error on the right side may be. It’s been transformed into xml as I see it, but it’s too big to show, because it’s 3,5 MB of data, which is a lot.
Hello so i found my problem
I try to extract a base64 files, but N8N can’t do it
so i make it with node code and that’s works now
const data64 = $("XML2").last().json.conEditReponse.documentb64;
// Vérifier si la donnée existe
if (!data64) {
throw new Error("Aucune donnée Base64 trouvée dans la réponse XML.");
}
// Convertir la base64 en Buffer
const buffer = Buffer.from(data64, "base64");
// Retourner le fichier PDF
return [{
json: {}, // Garder un objet JSON vide (obligatoire pour n8n)
binary: {
data: {
data: buffer.toString("base64"), // Le contenu en base64
mimeType: "application/pdf", // Type de fichier
fileName: "document.pdf" // Nom du fichier
}
}
}];
thanks
2 Likes
system
Closed
February 26, 2025, 9:11am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.