clouderrific / vitalsource-downloader

Updated script based on Cyberscape code to download books directly from VitalSource
MIT License
1 stars 1 forks source link

UnhandlePromiseRejection #3

Open francisrs opened 4 years ago

francisrs commented 4 years ago

vitalsource-downloader@1.0.0 start /home/francisrs/novo/vitalsource-downloader node index.js

undefined (node:180) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined at recursiveGet (/home/francisrs/novo/vitalsource-downloader/index.js:111:22) at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:180) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4) (node:180) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.