YouTube Upload Fails with 400 Error (Self-Hosted on Hetzner)

Hi everyone,

I’m currently running a self-hosted instance of n8n on Hetzner and trying to upload videos to YouTube via the built-in YouTube node, as well as via manual HTTP requests using the resumable upload API — but no matter what I try, I keep running into the same 400 error.

:wrench: What I tried

  1. Google Drive route:
  • Uploaded a video to Google Drive
    
  • Used the Google Drive node in n8n to download it
    
  • Passed it into the YouTube node → 400 error
    
  1. Web-hosted file:
  • Hosted the MP4 file on my own webserver
    
  • Used the HTTP Request node to download the file
    
  • Tried uploading it directly via YouTube node and also via resumable API → same result
    
  1. Configuration
  1. HTTP-Request
    I even created a custom OAuth2 API credential and constructed the HTTP Request manually following the official YouTube Resumable Upload Docs with https://www.googleapis.com/auth/youtube.upload as the scope

:police_car_light: Still no luck

Has anyone managed to get YouTube video upload working from a self-hosted n8n setup?

Any help or working examples would be greatly appreciated :folded_hands:
I already tried all free youtube-upload-templates but all workflows have the same issue.

Thanks!
Sebastian

Here is an example what I tried:

Hi @Sebastian_Schramm

I had this issue as well. If you are self hosting, you need to update the binary data mode. Here’s an image. Once you do that and redeploy, the workflow works.

if this post helps solve your issue, please mark it as the solution so others can benefit from it