DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
-
Recently, our jsReport application has been generating a large number of the following
DeprecationWarningmessages. We are currently using jsReport version 4.3.1.(node:3268) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake. at node:internal/util:496:17 at new Promise (<anonymous>) at beforeRender (node:internal/util:481:12) at executionFn (E:\app-reporting\node_modules\@jsreport\jsreport-scripts\lib\executeScript.js:73:58) at sandbox.js:50:18 at async run (E:\app-reporting\node_modules\@jsreport\jsreport-core\lib\worker\sandbox\createSandbox.js:137:16) at async WorkerReporter.runInSandbox [as _runInSandbox] (E:\app-reporting\node_modules\@jsreport\jsreport-core\lib\worker\sandbox\runInSandbox.js:211:14) at async executeScript (E:\app-reporting\node_modules\@jsreport\jsreport-scripts\lib\executeScript.js:129:12) at async Scripts._runScript (E:\app-reporting\node_modules\@jsreport\jsreport-scripts\lib\worker.js:140:30) at async Scripts.handleBeforeRender (E:\app-reporting\node_modules\@jsreport\jsreport-scripts\lib\worker.js:64:7)I am wondering whether upgrading to the next minor version might resolve this issue. Although these are only warnings, the high volume is significantly cluttering our error logs.
-
This is likely because you have updated the nodejs.
You have several options.
- downgrade back nodejs
- suppress warnings
node --no-deprecation server.jsor envNODE_NO_WARNINGS=1 - update jsreport, there seems to be no such warning in the latest jsreport, latest nodejs