Hi all, I really love the concept and execution of the product, am really hoping to make it a key part of an upcoming project.
I had some issues following the Companion tutorial. Some of the anchor links are disconnected and it feels like it’s been rewritten without being fully checked? I noticed a few references to the uppy-server rename, perhaps someone who knows the system well could take a look, I feel unqualitied to make a PR, though if we can get this sorted I may be able to work out what went wrong and do so in return
Companion installed via a vanilla express app + the npm install @uppy/companion line. I could not get the standalone install + “companion” to work.
Ref. getting up and running with the Companion + Oauth side of the server (all other components working correctly - direct uploads, URL uploads including WebSockets reverse proxying back through nginx on the Companion component).
Both with Dropbox and Google Drive I get this message:
TypeError [ERR_INVALID_ARG_TYPE]: The "password" argument must be one of type string, Buffer, TypedArray, or DataView. Received type undefined
at Cipher.createCipher (internal/crypto/cipher.js:90:11)
at new Cipher (internal/crypto/cipher.js:126:16)
at Object.createCipher (crypto.js:101:10)
at module.exports.encrypt (/home/deploy/node_modules/@uppy/companion/lib/server/helpers/utils.js:92:27)
at setState (/home/deploy/node_modules/@uppy/companion/lib/server/helpers/oauth-state.js:19:12)
at Object.module.exports.generateState (/home/deploy/node_modules/@uppy/companion/lib/server/helpers/oauth-state.js:8:12)
at connect (/home/deploy/node_modules/@uppy/companion/lib/server/controllers/connect.js:12:28)
at Layer.handle [as handle_request] (/home/deploy/node_modules/express/lib/router/layer.js:95:5)
at next (/home/deploy/node_modules/express/lib/router/route.js:137:13)
at exports.hasSessionAndProvider (/home/deploy/node_modules/@uppy/companion/lib/server/middlewares.js:11:12)
I’m not 100% certain my keys are correctly installed (though I believe they are - in the express server providerOptions hash) but this feels like a package version issue? Readout of some components below, hopefully its of help.
node -v v10.11.0 npm -v 6.4.1 sudo nginx -v nginx version: nginx/1.14.0 (Ubuntu) nodejs -v v8.10.0