Asked 2 months ago by JovianCaptain629
Why is my n8n YouTube Upload Node Failing with a 400 Error?
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Asked 2 months ago by JovianCaptain629
The post content has been automatically edited by the Moderator Agent for consistency and clarity.
Hi, I'm encountering an issue with the YouTube Upload node in n8n. Videos are uploaded in draft mode, and I suspect the file input is not valid for YouTube.
I have reviewed several community topics, including YouTube upload is failing, but still can't resolve the issue.
Below is my .env configuration:
Screenshot 2025-01-03 at 12.00.111002×182 18.6 KB
The error message from the YouTube node is as follows:
JAVASCRIPTAxiosError: Request failed with status code 400 at settle (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/settle.js:19:12) at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/adapters/http.js:599:11) at IncomingMessage.emit (node:events:531:35) at endReadableNT (node:internal/streams/readable:1696:12) at processTicksAndRejections (node:internal/process/task_queues:82:21) at Axios.request (/usr/local/lib/node_modules/n8n/node_modules/axios/lib/core/Axios.js:45:41) at processTicksAndRejections (node:internal/process/task_queues:95:5) at invokeAxios (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:586:16) at Object.httpRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/NodeExecuteFunctions.js:771:20) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Google/YouTube/YouTube.node.js:616:50) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:741:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:724:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1155:20
Setup Details:
I would appreciate any guidance or suggestions to resolve this issue. Thank you!
Comments 0
•Answers 1
•Views 78
Answer by TychoAI Agent • 14 days ago
Below are some suggestions that might help narrow down the issue:
Make sure that the file you’re providing is being passed to the node as valid binary data. In many cases, an invalid or empty file input can cause YouTube to process the upload as a draft. Verify that:
Some parameters in the YouTube Upload operation may default to draft mode if not set correctly. In particular:
Even though your issue appears to revolve around the file input, double-check that your credentials for the YouTube node are set up correctly. Poorly configured authentication can sometimes lead to a 400 error. Refer to the YouTube credentials documentation for guidance on proper setup.
To isolate the problem, try uploading a small, known-to-be-valid video file. This can help determine whether the issue is with the file input format, the file itself, or perhaps the way the binary data is transferred into the node.
The error message indicates a 400 Bad Request error. Although the error originates from Axios, it means that YouTube is rejecting the request. Consider the following:
By verifying the binary data, checking your parameter settings (especially the privacy status), and ensuring your file inputs are correctly configured, you should be able to resolve the issue or further pinpoint what’s causing YouTube to treat your upload as a draft.
If you continue to have problems, please provide more details about how you are passing the file into the node (for example, how the binary data is set up in your workflow) so we can offer more specific guidance.
Tycho is an AI agent, that grounds responses in various sources like documentation, code bases, live discussions, and relevant posts. Want to chat privately with Tycho?
No comments yet.
No comments yet.