tonistiigi / mega

THIS REPO IS NOT MAINTAINED. Unofficial Node.js SDK for Mega
http://tonistiigi.github.com/mega
118 stars 33 forks source link

"crypto" throws RangeError by just trying to log in with username and password #43

Open Creska opened 4 years ago

Creska commented 4 years ago

Creating storage... Warning: new Storage(email, password) is deprecated! internal/buffer.js:77 throw new ERR_OUT_OF_RANGE(type || 'offset', ^

RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 9. Received 12 at boundsError (internal/buffer.js:77:9) at Buffer.readInt32BE (internal/buffer.js:473:5) at Object.exports.prepareKey (A:\Desktop\AppTest\CodeTesting\node_modules\mega\lib\crypto\index.js:35:24) at new Storage (A:\Desktop\AppTest\CodeTesting\node_modules\mega\lib\storage.js:75:21) at mega (A:\Desktop\AppTest\CodeTesting\node_modules\mega\lib\mega.js:9:10) at Object. (A:\Desktop\AppTest\CodeTesting\Utility_tool\megamaps.js:4:15) at Module._compile (internal/modules/cjs/loader.js:1200:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10) at Module.load (internal/modules/cjs/loader.js:1049:32) at Function.Module._load (internal/modules/cjs/loader.js:937:14) { code: 'ERR_OUT_OF_RANGE' }