Share via

Node JS application working fine but getting error in Loign applicatioin

Birendra Singh 181 Reputation points
2021-04-14T10:51:38.063+00:00

Node JS application working fine but getting error in Loign applicatioin in logs "unable to get local issuer certificate"

2021-04-14T10:12:05.783707085Z code: 'HANDSHAKE_SSL_ERROR',
2021-04-14T10:12:05.783710685Z fatal: true
2021-04-14T10:12:05.783714285Z }​​​​​​
2021-04-14T10:12:05.786717646Z Failed to Schedule tasks
2021-04-14T10:12:05.787086766Z Error: unable to get local issuer certificate
2021-04-14T10:12:05.787111167Z at TLSSocket.<anonymous> (/home/site/wwwroot/node_modules/mysql/lib/Connection.js:320:48)
2021-04-14T10:12:05.787118767Z at TLSSocket.emit (events.js:315:20)
2021-04-14T10:12:05.787123467Z at TLSSocket.EventEmitter.emit (domain.js:486:12)
2021-04-14T10:12:05.787127868Z at TLSSocket._finishInit (_tls_wrap.js:932:8)
2021-04-14T10:12:05.787132068Z at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
2021-04-14T10:12:05.787136368Z --------------------
2021-04-14T10:12:05.787140868Z at Protocol._enqueue (/home/site/wwwroot/node_modules/mysql/lib/protocol/Protocol.js:144:48)
2021-04-14T10:12:05.787145169Z at Protocol.handshake (/home/site/wwwroot/node_modules/mysql/lib/protocol/Protocol.js:51:23)
2021-04-14T10:12:05.787149569Z at PoolConnection.connect (/home/site/wwwroot/node_modules/mysql/lib/Connection.js:119:18)
2021-04-14T10:12:05.787153869Z at Pool.getConnection (/home/site/wwwroot/node_modules/mysql/lib/Pool.js:48:16)
2021-04-14T10:12:05.787158169Z at Pool.query (/home/site/wwwroot/node_modules/mysql/lib/Pool.js:202:8)
2021-04-14T10:12:05.787162370Z at /home/site/wwwroot/routes/scheduler/scheduleTask.js:225:31
2021-04-14T10:12:05.787166570Z at /home/site/wwwroot/node_modules/async/lib/async.js:159:20
2021-04-14T10:12:05.787170870Z at replenish (/home/site/wwwroot/node_modules/async/lib/async.js:310:21)
2021-04-14T10:12:05.787175070Z at /home/site/wwwroot/node_modules/async/lib/async.js:321:15
2021-04-14T10:12:05.787179270Z at Object.async.forEachLimit.async.eachLimit (/home/site/wwwroot/node_modules/async/lib/async.js:214:35)
2021-04-14T10:12:05.787183471Z at /home/site/wwwroot/routes/scheduler/scheduleTask.js:222:15
2021-04-14T10:12:05.787187771Z at processTicksAndRejections (internal/process/task_queues.js:93:5) {​​​​​​
2021-04-14T10:12:05.787192071Z code: 'HANDSHAKE_SSL_ERROR',
2021-04-14T10:12:05.787196771Z fatal: true
2021-04-14T10:12:05.787200972Z }​​​​​​

Azure Database for MySQL
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

Answer accepted by question author
  1. Birendra Singh 181 Reputation points
    2021-09-15T06:44:27.477+00:00

    It got resloved

    We enable web socket then it working fine


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.