# Getting DeprecationWarnings

**URL:** <https://discourse.nodered.org/t/getting-deprecationwarnings/90187>\
**Category:** General\
**Tags:** docker\
**Created:** [15 August 2024 08:51 UTC](https://discourse.nodered.org/t/getting-deprecationwarnings/90187 "2024-08-15T08:51:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [15 August 2024 08:51 UTC](https://discourse.nodered.org/t/getting-deprecationwarnings/90187/1 "2024-08-15T08:51:53Z")

</div>

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

```auto
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.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 August 2024 08:59 UTC](https://discourse.nodered.org/t/getting-deprecationwarnings/90187/2 "2024-08-15T08:59:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 August 2024 09:00 UTC](https://discourse.nodered.org/t/getting-deprecationwarnings/90187/3 "2024-08-29T09:00:32Z")

</div>

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