Error: Here is a shorter version of the error description in English for the forum:
Error Description:
When uploading videos to YouTube via n8n, I get this error:
text
The request metadata specifies invalid video keywords. Error 400: invalidTags in body.snippet.tags
Context:
-
I pass video metadata including
property_tagsas an array of keywords. -
Example:
json
["Driving license application", "Driving test", "Theory test", ...]
-
I use
{{$json.property_tags}}to pass tags. -
Despite this, n8n converts the array to a string internally.
-
YouTube API expects tags as an array, not a string, causing the error.
What I tried:
-
Passing tags as string and array with different expressions.
-
Using HTTP Request Node with raw JSON body.
-
Using Youtube Node
-
Checked in debugger that tags are arrays before sending.
Question:
How do I keep tags as an array in n8n when uploading videos to avoid the invalidTags error? Any known workarounds for the YouTube Upload Node or tips for using the HTTP Request Node?
Thanks for the help!
Error:
Error is “options.tags?.split is not a function”
if i try to pass {{ $json.property_tags.split(', ') }} for a tag field.
$json.property_tags = “tag1, tag2, tag3” is a sting and as result shows n8n [Array: [“tag1”, “tag2”, “tag3”]
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:
1.113.3 (Self Hosted) - Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): dont know
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Unraid