Error when uploading Youtube video using Electron : Invalid multipart request with 0 mime parts.
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
Solution: Error when uploading Youtube video using Electron : Invalid multipart request with 0 mime parts.
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?
Trust Score
1 verification
- 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
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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep