Jan, please help - what settings in the module are needed - now no file is loaded…
Thank you.
ERROR: Bad request - please check your parameters
{“error”:{“code”:“BadRequest”,“message”:“Entity only allows writes with a JSON Content-Type header.”,“innerError”:{“date”:“2022-04-25T13:15:59”,“request-id”:“47e55cb7-9000-4dd6-abde-e7a51f2a31b2”,“client-request-id”:“47e55cb7-9000-4dd6-abde-e7a51f2a31b2”}}}
Details
Time
25.04.2022, 16:15:59
HTTP Code
400
Cause
Data below may contain sensitive information. Proceed with caution when sharing.
{
“message”: “400 - “{“error”:{“code”:“BadRequest”,“message”:“Entity only allows writes with a JSON Content-Type header.”,“innerError”:{“date”:“2022-04-25T13:15:59”,“request-id”:“47e55cb7-9000-4dd6-abde-e7a51f2a31b2”,“client-request-id”:“47e55cb7-9000-4dd6-abde-e7a51f2a31b2”}}}””,
“name”: “Error”,
“stack”: “Error: Request failed with status code 400 at createError (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/createError.js:16:15) at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:269:11) at IncomingMessage.emit (node:events:538:35) at endReadableNT (node:internal/streams/readable:1345:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)”
}
Stack
NodeApiError: Bad request - please check your parameters
at Object.microsoftApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/OneDrive/GenericFunctions.js:29:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Microsoft/OneDrive/MicrosoftOneDrive.node.js:156:44)
at async /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/src/WorkflowExecute.js:454:47
That is a bit odd, The header should be set the only part that was changed was around the filename itself.
What about this test workflow?
For me this results in the data being sent and if I do a full refresh on the Onedrive window it shows the file, The URL returned under @microsoft.graph.downloadUrl also shows me the image.
Everything works in yours. I added the Image Edit module in my process, substituted the “filename” value from HTTP Request and it worked too. So, I’ll add the file name through this module.
Thanks a lot, Jon. To you and to the team n8n!
Regards, Aleksandr.
Добрый день, Михаил. Откровенно говоря, перешёл уже с него на другое облако. Я бы попробовал начать с получения id и циклом уже получив их скачивать. Но если надо все сразу скачать, можно и руками.