私はmongoose 4.13.8とsendgrid 6.1.4にアップグレードしたときにこのエラーが発生します。私の側で問題を解決する方法や、以前のバージョンに戻す必要があるかどうかを理解しようとしていますか?ノード/ Mongooseは、mongoose約束警告のためSendGrid電子メールを送信しません
(node:4862) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
(node:4862) UnhandledPromiseRejectionWarning: Error: Unauthorized
at Request.http [as _callback] (node_modules/@sendgrid/client/src/client.js:124:25)
at Request.self.callback (node_modules/request/request.js:186:22)
at Request.emit (events.js:159:13)
at Request.<anonymous> (node_modules/request/request.js:1163:10)
at Request.emit (events.js:159:13)
at IncomingMessage.<anonymous> (node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:254:19)
at IncomingMessage.emit (events.js:164:20)
at endReadableNT (_stream_readable.js:1062:12)
at process._tickCallback (internal/process/next_tick.js:152:19)
(node:4862) 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(). (rejection id: 1)
(node:4862) [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.
問題のラインは右、node_modules/@sendgrid/client/src/client.js:124:25
から来ているように見えますか? https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/client/src/client.js#L124
修正するためにどのように任意のアイデア:行はここにあることを
?私は問題をよりよく理解するまで、私は両方をロールバックすると思います!前もって感謝します!
mongooseとsendgridは無関係の機能を実行する無関係なものです。 –
また、mongoose mpromise減価償却警告を考慮してブルーバードのようなあなたの選択の約束図書館を接続してください。 –