Unhandled promise rejection warning node js
This means that a promise you called rejected, but there was no catch used to handle the error. Add a catch after the offending then to handle this properly. The origin of this error lies in…
This means that a promise you called rejected, but there was no catch used to handle the error. Add a catch after the offending then to handle this properly. The origin of this error lies in…
The error is because of the new version of the mongoose i.e version 6.0.6. useNewUrlParser, useUnifiedTopology, useFindAndModify, and useCreateIndex are no longer supported options. Mongoose 6 always behaves as if useNewUrlParser, useUnifiedTopology, and useCreateIndex are true, and useFindAndModify is false. Please remove…
The btoa() function takes a JavaScript string as a parameter. In JavaScript strings are represented using the UTF-16 character encoding: in this encoding, strings are represented as a sequence of 16-bit (2…
Using NodeJS we can create ssh connection to send file or executing any command on Linux based server. Here we are using npm module ssh2 for sftp connection to transfer…