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
In starting tb-js-executor:3.3.3 the following error is recorded:
2022-02-18 10:48:02,925 [main] INFO: kafka template started.
2022-02-18 10:48:03,725 [main] ERROR: uncaughtException: options.port should be >= 0 and < 65536. Received NaN.
RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received NaN.
at new NodeError (node:internal/errors:371:5)
at validatePort (node:internal/validators:216:11)
at Server.listen (node:net:1461:5)
at Function.listen (/usr/share/tb-js-executor/node_modules/express/lib/application.js:618:24)
at Object. (/usr/share/tb-js-executor/api/httpServer.js:30:5)
In starting tb-js-executor:3.3.3 the following error is recorded:
2022-02-18 10:48:02,925 [main] INFO: kafka template started.
2022-02-18 10:48:03,725 [main] ERROR: uncaughtException: options.port should be >= 0 and < 65536. Received NaN.
RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received NaN.
at new NodeError (node:internal/errors:371:5)
at validatePort (node:internal/validators:216:11)
at Server.listen (node:net:1461:5)
at Function.listen (/usr/share/tb-js-executor/node_modules/express/lib/application.js:618:24)
at Object. (/usr/share/tb-js-executor/api/httpServer.js:30:5)
It seems the offending line is:
(/usr/share/tb-js-executor/api/httpServer.js:30:5)
where it tries to start a web server for readiness probe:
app.listen(httpPort, () => logger.info(
Started http endpoint on port ${httpPort}. Please, use /livenessProbe !
))using the httpPort config parameter:
const config = require('config'),
logger = require('../config/logger')._logger('httpServer'),
express = require('express');
const httpPort = Number(config.get('http_port'));
But it seems the config parameter httpPort cannot be retrieved.
Indeed, looking at the source, the config file is in config/default.yml
http_port: "8888" # /livenessProbe
but it seems it cannot be read or its type is not correct, so ending up in the error:
port should be >= 0 and < 65536. Received NaN.
Thanks
Michele
The text was updated successfully, but these errors were encountered: