Hi Team,
I’m facing problem while uploading video into youtube.
Error messuage- Request failed with status code 400
What is the error message (if any)?
N8N Workflow
{
“nodes”: [
{
“parameters”: {
“url”: “={{ $(‘Get Video’).item.json.movie.url }}”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
2180,
720
],
“id”: “4bedae38-0192-4374-850a-4555dc9ae3ca”,
“name”: “Download Video”
},
{
“parameters”: {
“resource”: “video”,
“operation”: “upload”,
“title”: “=Top Ten: {{ $(‘Created Video’).item.json.Subject }}”,
“regionCode”: “US”,
“categoryId”: “1”,
“options”: {
“description”: “=Our Top Ten Rankings of {{ $(‘Created Video’).item.json.Subject }}. Do you agree with us? Let us know in the comments! ”,
“privacyStatus”: “unlisted”
}
},
“type”: “n8n-nodes-base.youTube”,
“typeVersion”: 1,
“position”: [
2400,
720
],
“id”: “b3e64b32-aff6-4bf2-beb2-3bc20ae302ae”,
“name”: “YouTube”,
“credentials”: {
“youTubeOAuth2Api”: {
“id”: “nh8zHNdHtei6avew”,
“name”: “YouTube account”
}
}
}
],
“connections”: {
“Download Video”: {
“main”: [
[
{
“node”: “YouTube”,
“type”: “main”,
“index”: 0
}
]
]
},
“YouTube”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “818d1489a2f72dfb5e5386b7db851e5d046fa22920f38e578e1ed4bbd77ed2c0”
}
}
I have gone thorugh the community and tried setting tried setting N8N_DEFAULT_BINARY_DATA_MODE
to filesystem
however its not working.
1 Like
rbreen
April 18, 2025, 2:09am
2
Hi @yarram_kartheek_redd ,
Your workflow didnt come through right. Can you copy your workflow, and add it in a code block? Then it will render so we can help solve your issue.
Best,
Robert
{
“nodes”: [
{
“parameters”: {
“url”: “={{ $(‘Get Video’).item.json.movie.url }}”,
“options”: {}
},
“type”: “n8n-nodes-base.httpRequest”,
“typeVersion”: 4.2,
“position”: [
2180,
720
],
“id”: “4bedae38-0192-4374-850a-4555dc9ae3ca”,
“name”: “Download Video”
},
{
“parameters”: {
“resource”: “video”,
“operation”: “upload”,
“title”: “=Top Ten: {{ $(‘Created Video’).item.json.Subject }}”,
“regionCode”: “US”,
“categoryId”: “1”,
“options”: {
“description”: “=Our Top Ten Rankings of {{ $(‘Created Video’).item.json.Subject }}. Do you agree with us? Let us know in the comments!:point_down:”,
“privacyStatus”: “unlisted”
}
},
“type”: “n8n-nodes-base.youTube”,
“typeVersion”: 1,
“position”: [
2400,
720
],
“id”: “b3e64b32-aff6-4bf2-beb2-3bc20ae302ae”,
“name”: “YouTube”,
“credentials”: {
“youTubeOAuth2Api”: {
“id”: “nh8zHNdHtei6avew”,
“name”: “YouTube account”
}
}
}
],
“connections”: {
“Download Video”: {
“main”: [
[
{
“node”: “YouTube”,
“type”: “main”,
“index”: 0
}
]
]
},
“YouTube”: {
“main”: [
]
}
},
“pinData”: {},
“meta”: {
“instanceId”: “818d1489a2f72dfb5e5386b7db851e5d046fa22920f38e578e1ed4bbd77ed2c0”
}
}
Here is my workflow JSON:
I’m having the same problem, 400 error, it seems that there is something wrong with the YouTube node
Hi Robert - Did you get a chance to look into the issue?
1 Like
rbreen
April 28, 2025, 5:25pm
7
@yarram_kartheek_redd Does your download node download the html or a binary file? It looks like you are downloading just the html, not binary. Have you tried using tools like apify to download youtube videos so you can upload them?
I have the same problem,404,What is the reason?
Simple Fix for Binary 404 Errors in N8n (Docker or Self-hosted)
Add the following lines to your .env file or Docker environment config:
N8N_BINARY_DATA_MODE=filesystem
N8N_DEFAULT_BINARY_DATA_MODE=filesystem
N8N_EXECUTIONS_PROCESS=own
Then restart N8n.
This ensures:
*Binary files are stored properly on disk
*Workflows can access the files after execution
*404 errors when downloading files (like images/videos) are avoided
That’s it! This fix works for Docker, N8n cloud (if supported), or self-hosted setups.
1 Like
system
Closed
May 7, 2025, 5:43pm
11
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.