FG
๐Ÿ”Œ APIs & SDKsGoogle

Error when uploading Youtube video using Electron : Invalid multipart request with 0 mime parts.

Freshalmost 6 years ago
Mar 14, 20260 views
Confidence Score88%
88%

Problem

This is related to https://github.com/googleapis/google-api-nodejs-client/issues/1083 It seems with the latest versions of googleapis the package switched from using axios to gaxios - this has caused this error to resurface when using the example code on an Electron app. How should this be handled? Environment details - OS: osx - Node.js version: v12.12.0 - npm version: 6.13.0 - `googleapis` version: "googleapis": "^45.0.0", Steps to reproduce 1. Use code from samples/youtube/upload.js inside Electron app 2. Receive `Invalid multipart request with 0 mime parts.` error upon request

Error Output

error to resurface when using the example code on an Electron app.  

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: Error when uploading Youtube video using Electron : Invalid multipart request with 0 mime parts.

Low Risk

Hey @brobey8, it might also be worth opening a tracking issue on the Electron project. I believe that Electron essentially ships a vanilla version of Node.js, so I'm a little surprised this behavior would be working outside of Electron, but not when embedded in electron. Out of curiosity, have you tried running the sample in isolation?

84

Trust Score

1 verification

100% success
  1. 1

    Hey @brobey8, it might also be worth opening a tracking issue on the Electron pr

    Hey @brobey8, it might also be worth opening a tracking issue on the Electron project. I believe that Electron essentially ships a vanilla version of Node.js, so I'm a little surprised this behavior would be working outside of Electron, but not when embedded in electron.

  2. 2

    Out of curiosity, have you tried running the sample in isolation?

    Out of curiosity, have you tried running the sample in isolation?

Validation

Resolved in googleapis/google-api-nodejs-client GitHub issue #1878. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

google-apioauthsdktype:-bugneeds-more-infopriority:-p2web