You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bump into the following deprecation warning in the following code snippet:
healthchecks.get('/live', function (req, res, next) {
res.send('OK')
});
[nodejsrestapi-1] (node:1) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[nodejsrestapi-1] at ServerResponse.writeHead (/app/node_modules/spdy/lib/spdy/response.js:18:12)
[nodejsrestapi-1] at ServerResponse.writeHead (/app/node_modules/on-headers/index.js:44:26)
[nodejsrestapi-1] at ServerResponse.writeHead (/app/node_modules/on-headers/index.js:44:26)
[nodejsrestapi-1] at ServerResponse.writeHead (/app/node_modules/on-headers/index.js:44:26)
[nodejsrestapi-1] at ServerResponse._implicitHeader (node:_http_server:287:8)
[nodejsrestapi-1] at ServerResponse.end (/app/node_modules/compression/index.js:103:14)
[nodejsrestapi-1] at ServerResponse.send (/app/node_modules/express/lib/response.js:232:10)
[nodejsrestapi-1] at file:///app/src/webapi/routes/healthchecks.js:23:9
[nodejsrestapi-1] at Layer.handle [as handle_request] (/app/node_modules/express/lib/router/layer.js:95:5)
[nodejsrestapi-1] at next (/app/node_modules/express/lib/router/route.js:144:13)
"express": "^4.18.1",
Node: v18.7.0
The text was updated successfully, but these errors were encountered:
Hello, and sorry for your issue. It seems you may have opened the issue on the wrong module. According to your included stack trace, the spdy module is accessing the deprecated property, not the express module:
Bump into the following deprecation warning in the following code snippet:
"express": "^4.18.1",
Node: v18.7.0
The text was updated successfully, but these errors were encountered: