Getting DeprecationWarnings

Lately (I think after upgrading node-red to v4.0.2 in docker) I am seeing 2 deprecationWarnings.

Welcome to Node-RED
===================

15 Aug 10:44:08 - [info] Node-RED version: v4.0.2
15 Aug 10:44:08 - [info] Node.js  version: v22.6.0
15 Aug 10:44:08 - [info] Linux 6.5.0-44-generic x64 LE
(node:7) [DEP0059] DeprecationWarning: The `util.log API is deprecated. Please use console.log() with a custom formatter or a third-party logger instead.
    at LogHandler.consoleLogger [as handler] (/usr/src/node-red/node_modules/@node-red/util/lib/log.js:94:18)
    at LogHandler.<anonymous> (/usr/src/node-red/node_modules/@node-red/util/lib/log.js:66:18)
    at LogHandler.emit (node:events:520:28)
    at /usr/src/node-red/node_modules/@node-red/util/lib/log.js:160:21
    at Array.forEach (<anonymous>)
    at Object.log (/usr/src/node-red/node_modules/@node-red/util/lib/log.js:159:21)
    at Object.info (/usr/src/node-red/node_modules/@node-red/util/lib/log.js:169:13)
    at /usr/src/node-red/node_modules/@node-red/runtime/lib/index.js:152:17
15 Aug 10:44:09 - [info] Loading palette nodes
15 Aug 10:44:11 - [info] Dashboard version 3.6.5 started at /ui
15 Aug 10:44:12 - [info] Settings file  : /data/settings.js
15 Aug 10:44:12 - [info] Context store  : 'default' [module=memory]
15 Aug 10:44:12 - [info] User directory : /data
15 Aug 10:44:12 - [info] Projects directory: /data/projects
(node:7) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:399:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
    at loadBuiltinModule (node:internal/modules/helpers:98:7)
    at Module._load (node:internal/modules/cjs/loader:1099:17)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1339:12)
    at require (node:internal/modules/helpers:125:16)
    at Object.<anonymous> (/usr/src/node-red/node_modules/psl/index.js:5:16)
15 Aug 10:44:12 - [info] Server now running at http://127.0.0.1:1880/
15 Aug 10:44:12 - [info] Active project : niamondo
15 Aug 10:44:12 - [info] Flows file     : /data/projects/niamondo/deck/flows.json
15 Aug 10:44:12 - [warn] Using unencrypted credentials
15 Aug 10:44:12 - [info] Starting flows

I have no clue how I can fix this.

Hi @janvda

There is nothing for you to fix. This is a warning about usage of a function that will be removed in a future node.js release.

We are aware of the issue and it'll be addressed in the next Node-RED maintenance release.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.