
Error: connect ECONNREFUSED 64.31.43.162:3306
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1278:16)
    --------------------
    at Protocol._enqueue (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at Protocol.handshake (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:51:23)
    at PoolConnection.connect (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:116:18)
    at Pool.getConnection (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Pool.js:48:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:19:8
    at new Promise (<anonymous>)
    at getConnection (/home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:18:10)
    at performQuery (/home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:31:28)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:870:27
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '64.31.43.162',
  port: 3306,
  fatal: true
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 10:26:52, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 16:07:55, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 16:59:56, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 17:40:56, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 19:50:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home2/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/21/2024 19:50:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home2/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/22/2024 12:41:46, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/22/2024 12:42:06, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/22/2024 14:25:07, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home2/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home2/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/22/2024 14:26:47, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/22/2024 14:57:47, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: Sat Jun 22 2024 18:04:42 GMT+0000 (Coordinated Universal Time), _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/attendance/create.js:11:6
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/23/2024 23:55:04, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/23/2024 23:55:24, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/24/2024 01:00:24, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/24/2024 10:03:49, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/24/2024 10:04:09, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/24/2024 18:55:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/25/2024 07:37:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/25/2024 11:40:22, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/25/2024 18:54:46, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/26/2024 08:38:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/26/2024 08:39:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/26/2024 08:56:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 00:16:01, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: Wed Jun 26 2024 19:16:30 GMT+0000 (Coordinated Universal Time), _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/attendance/create.js:11:6
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 11:57:27, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 13:45:28, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 13:45:48, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 15:09:28, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 21:29:52, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:00:32',\n" +
    '      duration=1640, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999990.06634',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:00:32' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:00:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:00:53',\n" +
    '      duration=1661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999231.59915999999998',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:00:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:13',\n" +
    '      duration=1681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999373.13198',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:33',\n" +
    '      duration=1701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999514.6648',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:33',\n" +
    '      duration=1701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999514.6648',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:33',\n" +
    '      duration=1701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999514.6648',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:53',\n" +
    '      duration=1721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999656.19762',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:01:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:01:53',\n" +
    '      duration=1721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999656.19762',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:01:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:02:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:02:13',\n" +
    '      duration=1741, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999797.7304399999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:02:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:02:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:02:33',\n" +
    '      duration=1761, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999939.26326',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:02:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:02:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:02:33',\n" +
    '      duration=1761, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.00628999999939.26326',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:02:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:02:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:02:53',\n" +
    '      duration=1781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991080.79608',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:02:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:02:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:02:53',\n" +
    '      duration=1781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991080.79608',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:02:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:13',\n" +
    '      duration=1801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991221.95047',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:13',\n" +
    '      duration=1801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991221.95047',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:33',\n" +
    '      duration=1821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991363.48329',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:33',\n" +
    '      duration=1821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991363.48329',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:53',\n" +
    '      duration=1841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991505.01611',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:53',\n" +
    '      duration=1841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991505.01611',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:03:53',\n" +
    '      duration=1841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991505.01611',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:03:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:13',\n" +
    '      duration=1861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991646.54893',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:13',\n" +
    '      duration=1861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991646.54893',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:33',\n" +
    '      duration=1881, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991788.08175',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:33',\n" +
    '      duration=1881, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991788.08175',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:53',\n" +
    '      duration=1901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991929.61457',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:53',\n" +
    '      duration=1901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991929.61457',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:04:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:04:53',\n" +
    '      duration=1901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999991929.61457',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:04:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:05:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:05:13',\n" +
    '      duration=1921, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992071.14739',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:05:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:05:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:05:13',\n" +
    '      duration=1921, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992071.14739',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:05:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:05:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:05:33',\n" +
    '      duration=1941, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992212.30178',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:05:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:05:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:05:53',\n" +
    '      duration=1961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992353.8346',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:05:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:05:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:05:53',\n" +
    '      duration=1961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992353.8346',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:05:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:06:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:06:13',\n" +
    '      duration=1981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992495.36742',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:06:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:06:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:06:13',\n" +
    '      duration=1981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992495.36742',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:06:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:06:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:06:33',\n" +
    '      duration=2001, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992636.90024',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:06:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:06:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:06:53',\n" +
    '      duration=2021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992778.43306',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:06:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:06:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:06:53',\n" +
    '      duration=2021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992778.43306',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:06:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:13',\n" +
    '      duration=2041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992919.9658799999997',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:13',\n" +
    '      duration=2041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999992919.9658799999997',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:33',\n" +
    '      duration=2061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993061.4987',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:33',\n" +
    '      duration=2061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993061.4987',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:53',\n" +
    '      duration=2081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993202.65309',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:07:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:07:53',\n" +
    '      duration=2081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993202.65309',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:07:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:08:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:08:13',\n" +
    '      duration=2101, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993344.1859099999997',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:08:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:08:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:08:13',\n" +
    '      duration=2101, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993344.1859099999997',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:08:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:08:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:08:33',\n" +
    '      duration=2121, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993485.71873',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:08:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:08:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:08:53',\n" +
    '      duration=2141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993627.25155',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:08:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:08:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:08:53',\n" +
    '      duration=2141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993627.25155',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:08:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:13',\n" +
    '      duration=2161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993768.78437',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:13',\n" +
    '      duration=2161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993768.78437',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:33',\n" +
    '      duration=2181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993910.3171899999998',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:33',\n" +
    '      duration=2181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999993910.3171899999998',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:53',\n" +
    '      duration=2201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994051.47158',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:53',\n" +
    '      duration=2201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994051.47158',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:09:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:09:53',\n" +
    '      duration=2201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994051.47158',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:09:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:13',\n" +
    '      duration=2221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994193.0044',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:13',\n" +
    '      duration=2221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994193.0044',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:33',\n" +
    '      duration=2241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994334.53722',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:33',\n" +
    '      duration=2241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994334.53722',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:53',\n" +
    '      duration=2261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994476.07004',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:10:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:10:53',\n" +
    '      duration=2261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994476.07004',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:10:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:13',\n" +
    '      duration=2281, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994617.60286',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:13',\n" +
    '      duration=2281, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994617.60286',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:33',\n" +
    '      duration=2301, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994758.75725',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:53',\n" +
    '      duration=2321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994900.29007',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:53',\n" +
    '      duration=2321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994900.29007',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:11:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:11:53',\n" +
    '      duration=2321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999994900.29007',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:11:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:13',\n" +
    '      duration=2341, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995041.8228899999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:13',\n" +
    '      duration=2341, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995041.8228899999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:33',\n" +
    '      duration=2361, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995183.35571',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:33',\n" +
    '      duration=2361, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995183.35571',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:53',\n" +
    '      duration=2381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995324.5100999999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:53',\n" +
    '      duration=2381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995324.5100999999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:12:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:12:53',\n" +
    '      duration=2381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995324.5100999999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:12:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:13',\n" +
    '      duration=2401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995466.04292',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:13',\n" +
    '      duration=2401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995466.04292',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:33',\n" +
    '      duration=2421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995607.57574',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:33',\n" +
    '      duration=2421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995607.57574',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:53',\n" +
    '      duration=2441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:13:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:13:53',\n" +
    '      duration=2441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:13:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:13',\n" +
    '      duration=2461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:13',\n" +
    '      duration=2461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:33',\n" +
    '      duration=2481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:33',\n" +
    '      duration=2481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:33',\n" +
    '      duration=2481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:53',\n" +
    '      duration=2501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:14:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:14:53',\n" +
    '      duration=2501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:14:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:13',\n" +
    '      duration=2521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:13',\n" +
    '      duration=2521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:33',\n" +
    '      duration=2541, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:33',\n" +
    '      duration=2541, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:53',\n" +
    '      duration=2561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:15:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:15:53',\n" +
    '      duration=2561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:15:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:13',\n" +
    '      duration=2581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:13',\n" +
    '      duration=2581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:33',\n" +
    '      duration=2601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:33',\n" +
    '      duration=2601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:53',\n" +
    '      duration=2621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:16:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:16:53',\n" +
    '      duration=2621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:16:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:13',\n" +
    '      duration=2641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:13',\n" +
    '      duration=2641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:33',\n" +
    '      duration=2661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:33',\n" +
    '      duration=2661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:53',\n" +
    '      duration=2681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:17:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:17:53',\n" +
    '      duration=2681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:17:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:13',\n" +
    '      duration=2701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:13',\n" +
    '      duration=2701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:33',\n" +
    '      duration=2721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:33',\n" +
    '      duration=2721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:33',\n" +
    '      duration=2721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:53',\n" +
    '      duration=2741, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:18:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:18:53',\n" +
    '      duration=2741, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:18:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:13',\n" +
    '      duration=2761, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:13',\n" +
    '      duration=2761, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:33',\n" +
    '      duration=2781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:33',\n" +
    '      duration=2781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:53',\n" +
    '      duration=2801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:19:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:19:53',\n" +
    '      duration=2801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:19:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:20:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:20:13',\n" +
    '      duration=2821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:20:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:20:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:20:13',\n" +
    '      duration=2821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:20:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:20:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:20:33',\n" +
    '      duration=2841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:20:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:20:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:20:53',\n" +
    '      duration=2861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:20:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:20:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:20:53',\n" +
    '      duration=2861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:20:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:13',\n" +
    '      duration=2881, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:13',\n" +
    '      duration=2881, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:33',\n" +
    '      duration=2901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:33',\n" +
    '      duration=2901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995741.161529999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:53',\n" +
    '      duration=2921, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995757.812449999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:21:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:21:53',\n" +
    '      duration=2921, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995757.812449999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:21:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:13',\n" +
    '      duration=2941, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995852.04152',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:13',\n" +
    '      duration=2941, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995852.04152',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:33',\n" +
    '      duration=2961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995990.16847',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:33',\n" +
    '      duration=2961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995990.16847',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:33',\n" +
    '      duration=2961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999995990.16847',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:53',\n" +
    '      duration=2981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996131.70129',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:22:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:22:53',\n" +
    '      duration=2981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996131.70129',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:22:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:13',\n" +
    '      duration=3001, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996273.234109999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:13',\n" +
    '      duration=3001, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996273.234109999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:33',\n" +
    '      duration=3021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996414.76693',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:33',\n" +
    '      duration=3021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996414.76693',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:53',\n" +
    '      duration=3041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996556.29975',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:23:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:23:53',\n" +
    '      duration=3041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996556.29975',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:23:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:24:13',\n" +
    '      duration=3061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996697.83257',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:24:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:24:13',\n" +
    '      duration=3061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996697.83257',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:24:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:24:33',\n" +
    '      duration=3081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996839.36539',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:24:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:24:33',\n" +
    '      duration=3081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996839.36539',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:24:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:24:53',\n" +
    '      duration=3101, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999996980.898209999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:24:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:24:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:13',\n" +
    '      duration=3121, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997122.8094599999995',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:25:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:33',\n" +
    '      duration=3141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997264.34228',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:25:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:33',\n" +
    '      duration=3141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997264.34228',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:25:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:33',\n" +
    '      duration=3141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997264.34228',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:25:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:53',\n" +
    '      duration=3161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997405.8751',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:25:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:25:53',\n" +
    '      duration=3161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997405.8751',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:25:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:13',\n" +
    '      duration=3181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997547.40792',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:13',\n" +
    '      duration=3181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997547.40792',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:33',\n" +
    '      duration=3201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997688.94074',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:33',\n" +
    '      duration=3201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997688.94074',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:33',\n" +
    '      duration=3201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997688.94074',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:53',\n" +
    '      duration=3221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997830.473559999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:26:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:26:53',\n" +
    '      duration=3221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997830.473559999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:26:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:13',\n" +
    '      duration=3241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997972.00638',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:13',\n" +
    '      duration=3241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999997972.00638',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:33',\n" +
    '      duration=3261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998113.5392',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:33',\n" +
    '      duration=3261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998113.5392',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:53',\n" +
    '      duration=3281, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998255.07202',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:27:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:27:53',\n" +
    '      duration=3281, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998255.07202',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:27:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:28:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:28:13',\n" +
    '      duration=3301, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998396.60484',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:28:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:28:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:28:13',\n" +
    '      duration=3301, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998396.60484',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:28:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:28:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:28:33',\n" +
    '      duration=3321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998538.13766',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:28:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:28:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:28:33',\n" +
    '      duration=3321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998538.13766',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:28:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:28:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:28:53',\n" +
    '      duration=3341, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998679.670479999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:28:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:13',\n" +
    '      duration=3361, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998821.2033',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:13',\n" +
    '      duration=3361, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998821.2033',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:33',\n" +
    '      duration=3381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998962.73612',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:33',\n" +
    '      duration=3381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999998962.73612',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:53',\n" +
    '      duration=3401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999104.26894',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:29:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:29:53',\n" +
    '      duration=3401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999104.26894',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:29:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:13',\n" +
    '      duration=3421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999245.80176',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:13',\n" +
    '      duration=3421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999245.80176',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:33',\n" +
    '      duration=3441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999386.95615',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:33',\n" +
    '      duration=3441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999386.95615',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:53',\n" +
    '      duration=3461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999528.48897',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:30:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:30:53',\n" +
    '      duration=3461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999528.48897',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:30:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:13',\n" +
    '      duration=3481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999670.021789999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:13',\n" +
    '      duration=3481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999670.021789999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:13',\n" +
    '      duration=3481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999670.021789999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:33',\n" +
    '      duration=3501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999811.55461',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:33',\n" +
    '      duration=3501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999811.55461',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:53',\n" +
    '      duration=3521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999953.08743',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:31:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:31:53',\n" +
    '      duration=3521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.006289999999953.08743',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:31:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:13',\n" +
    '      duration=3541, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910094.62025',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:33',\n" +
    '      duration=3561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910236.15307',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:33',\n" +
    '      duration=3561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910236.15307',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:53',\n" +
    '      duration=3581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910377.685889999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:53',\n" +
    '      duration=3581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910377.685889999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:32:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:32:53',\n" +
    '      duration=3581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910377.685889999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:32:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:13',\n" +
    '      duration=3601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910519.21871',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:13',\n" +
    '      duration=3601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910519.21871',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:33',\n" +
    '      duration=3621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910660.75153',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:33',\n" +
    '      duration=3621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910660.75153',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:33',\n" +
    '      duration=3621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910660.75153',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:53',\n" +
    '      duration=3641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910802.28435',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:33:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:33:53',\n" +
    '      duration=3641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910802.28435',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:33:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:34:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:34:13',\n" +
    '      duration=3661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910943.81717',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:34:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:34:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:34:13',\n" +
    '      duration=3661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999910943.81717',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:34:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:34:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:34:33',\n" +
    '      duration=3681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911085.349989999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:34:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:34:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:34:53',\n" +
    '      duration=3701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911226.88281',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:34:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:34:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:35:13',\n" +
    '      duration=3721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911368.41563',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:35:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:35:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:35:13',\n" +
    '      duration=3721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911368.41563',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:35:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: "06/27/2024 11:33:16 pm", _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at createLocal (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3104:16)
    at hooks (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:16:29)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/orders/create.js:51:26)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:35:33',\n" +
    '      duration=3741, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911509.94845',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:35:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:35:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:35:33',\n" +
    '      duration=3741, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911509.94845',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:35:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:35:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:35:53',\n" +
    '      duration=3761, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911651.48127',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:35:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:13',\n" +
    '      duration=3781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911793.014089999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:13',\n" +
    '      duration=3781, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911793.014089999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:33',\n" +
    '      duration=3801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911934.54691',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:33',\n" +
    '      duration=3801, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999911934.54691',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:53',\n" +
    '      duration=3821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912076.07973',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:36:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:36:53',\n" +
    '      duration=3821, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912076.07973',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:36:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:37:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:37:13',\n" +
    '      duration=3841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912217.61255',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:37:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:37:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:37:13',\n" +
    '      duration=3841, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912217.61255',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:37:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:37:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:37:33',\n" +
    '      duration=3861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912359.14537',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:37:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:37:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:37:33',\n" +
    '      duration=3861, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912359.14537',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:37:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:37:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:37:53',\n" +
    '      duration=3881, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912500.678189999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:37:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:38:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:38:13',\n" +
    '      duration=3901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912642.211009999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:38:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:38:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:38:13',\n" +
    '      duration=3901, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912642.211009999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:38:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:38:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:38:33',\n" +
    '      duration=3921, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912783.74383',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:38:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:38:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:38:53',\n" +
    '      duration=3941, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999912925.27665',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:38:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:13',\n" +
    '      duration=3961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913066.80947',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:13',\n" +
    '      duration=3961, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913066.80947',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:33',\n" +
    '      duration=3981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913208.34229',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:33',\n" +
    '      duration=3981, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913208.34229',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:53',\n" +
    '      duration=4001, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913349.875109999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:39:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:39:53',\n" +
    '      duration=4001, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913349.875109999999',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:39:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:13',\n" +
    '      duration=4021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913491.40793',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:13',\n" +
    '      duration=4021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913491.40793',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:13',\n" +
    '      duration=4021, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913491.40793',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:33',\n" +
    '      duration=4041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913632.94075',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:33',\n" +
    '      duration=4041, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913632.94075',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:53',\n" +
    '      duration=4061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:40:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:40:53',\n" +
    '      duration=4061, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:40:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:13',\n" +
    '      duration=4081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:13',\n" +
    '      duration=4081, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:33',\n" +
    '      duration=4101, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:33',\n" +
    '      duration=4101, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:53',\n" +
    '      duration=4121, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:41:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:41:53',\n" +
    '      duration=4121, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:41:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:13',\n" +
    '      duration=4141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:13',\n" +
    '      duration=4141, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:33',\n" +
    '      duration=4161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:33',\n" +
    '      duration=4161, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:53',\n" +
    '      duration=4181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:42:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:42:53',\n" +
    '      duration=4181, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:42:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:13',\n" +
    '      duration=4201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:13',\n" +
    '      duration=4201, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:33',\n" +
    '      duration=4221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:33',\n" +
    '      duration=4221, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:53',\n" +
    '      duration=4241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:43:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:43:53',\n" +
    '      duration=4241, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:43:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:13',\n" +
    '      duration=4261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:13',\n" +
    '      duration=4261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:13',\n" +
    '      duration=4261, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:33',\n" +
    '      duration=4281, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:53',\n" +
    '      duration=4301, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:44:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:44:53',\n" +
    '      duration=4301, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:44:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:45:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:45:13',\n" +
    '      duration=4321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:45:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:45:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:45:13',\n" +
    '      duration=4321, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:45:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:45:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:45:33',\n" +
    '      duration=4341, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:45:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:45:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:45:33',\n" +
    '      duration=4341, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:45:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:45:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:45:53',\n" +
    '      duration=4361, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:45:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:13',\n" +
    '      duration=4381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:13',\n" +
    '      duration=4381, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:33',\n" +
    '      duration=4401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:33',\n" +
    '      duration=4401, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:53',\n" +
    '      duration=4421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:53',\n" +
    '      duration=4421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:46:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:46:53',\n" +
    '      duration=4421, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:46:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:13',\n" +
    '      duration=4441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:13',\n" +
    '      duration=4441, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:33',\n" +
    '      duration=4461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:33',\n" +
    '      duration=4461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:33',\n" +
    '      duration=4461, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:53',\n" +
    '      duration=4481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:53',\n" +
    '      duration=4481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:47:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:47:53',\n" +
    '      duration=4481, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:47:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:13',\n" +
    '      duration=4501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:13',\n" +
    '      duration=4501, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:33',\n" +
    '      duration=4521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:33',\n" +
    '      duration=4521, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:53',\n" +
    '      duration=4541, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:48:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:48:53',\n" +
    '      duration=4541, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:48:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:13',\n" +
    '      duration=4561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:13',\n" +
    '      duration=4561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:13',\n" +
    '      duration=4561, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:33',\n" +
    '      duration=4581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:33',\n" +
    '      duration=4581, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:53',\n" +
    '      duration=4601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:49:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:49:53',\n" +
    '      duration=4601, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:49:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:13',\n" +
    '      duration=4621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:13',\n" +
    '      duration=4621, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:33',\n" +
    '      duration=4641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:33',\n" +
    '      duration=4641, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:53',\n" +
    '      duration=4661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:50:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:50:53',\n" +
    '      duration=4661, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:50:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:13',\n" +
    '      duration=4681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:13',\n" +
    '      duration=4681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:13',\n" +
    '      duration=4681, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:13' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:33',\n" +
    '      duration=4701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:33',\n" +
    '      duration=4701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:33',\n" +
    '      duration=4701, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:33' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:53',\n" +
    '      duration=4721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:51:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/27/2024 23:51:53',\n" +
    '      duration=4721, totalProduction=NaN,\n' +
    "      productionAtEnd='105848.0062899999913765.01282',\n" +
    "      speed=NaN, timestamp='06/27/2024 23:51:53' \n" +
    '    WHERE \n' +
    '      id=15555\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/27/2024 23:52:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:13',\n" +
    '      duration=3440, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834610.59604',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:03:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:33',\n" +
    '      duration=3460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834630.652829999999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:03:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:33',\n" +
    '      duration=3460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834630.652829999999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:53',\n" +
    '      duration=3480, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834650.70962',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:53',\n" +
    '      duration=3480, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834650.70962',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:03:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:03:53',\n" +
    '      duration=3480, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834650.70962',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:03:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:13',\n" +
    '      duration=3500, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834670.76641',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:13',\n" +
    '      duration=3500, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834670.76641',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:33',\n" +
    '      duration=3520, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834690.8232',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:33',\n" +
    '      duration=3520, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.834690.8232',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:53',\n" +
    '      duration=3540, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346110.50156',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:04:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:04:53',\n" +
    '      duration=3540, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346110.50156',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:04:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:05:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:05:13',\n" +
    '      duration=3560, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346130.55835',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:05:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:05:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:05:13',\n" +
    '      duration=3560, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346130.55835',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:05:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:05:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:05:33',\n" +
    '      duration=3580, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346150.61514',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:05:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:05:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:05:53',\n" +
    '      duration=3600, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346170.67193',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:05:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:05:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:05:53',\n" +
    '      duration=3600, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346170.67193',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:05:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:13',\n" +
    '      duration=3620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346190.72871999999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:13',\n" +
    '      duration=3620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346190.72871999999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:33',\n" +
    '      duration=3640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346210.78551',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:33',\n" +
    '      duration=3640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346210.78551',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:53',\n" +
    '      duration=3660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346230.8423',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:06:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:06:53',\n" +
    '      duration=3660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346230.8423',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:06:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:13',\n" +
    '      duration=3680, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346250.52066',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:33',\n" +
    '      duration=3700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346270.57745',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:33',\n" +
    '      duration=3700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346270.57745',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:53',\n" +
    '      duration=3720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346290.63424',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:53',\n" +
    '      duration=3720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346290.63424',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:07:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:07:53',\n" +
    '      duration=3720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346290.63424',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:07:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:08:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:08:13',\n" +
    '      duration=3740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346310.69103',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:08:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:08:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:08:13',\n" +
    '      duration=3740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346310.69103',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:08:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:08:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:08:33',\n" +
    '      duration=3760, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346330.74782',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:08:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:08:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:08:53',\n" +
    '      duration=3780, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346350.80460999999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:08:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:08:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:08:53',\n" +
    '      duration=3780, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346350.80460999999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:08:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:13',\n" +
    '      duration=3800, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346370.8614',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:13',\n" +
    '      duration=3800, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346370.8614',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:33',\n" +
    '      duration=3820, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346390.91819',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:33',\n" +
    '      duration=3820, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346390.91819',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:33',\n" +
    '      duration=3820, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346390.91819',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:53',\n" +
    '      duration=3840, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346410.59655',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:09:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:09:53',\n" +
    '      duration=3840, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346410.59655',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:09:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:13',\n" +
    '      duration=3860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:13',\n" +
    '      duration=3860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:13',\n" +
    '      duration=3860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:33',\n" +
    '      duration=3880, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:53',\n" +
    '      duration=3900, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:10:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:10:53',\n" +
    '      duration=3900, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:10:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:13',\n" +
    '      duration=3920, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:13',\n" +
    '      duration=3920, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:33',\n" +
    '      duration=3940, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:33',\n" +
    '      duration=3940, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:53',\n" +
    '      duration=3960, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:11:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:11:53',\n" +
    '      duration=3960, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:11:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:13',\n" +
    '      duration=3980, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:13',\n" +
    '      duration=3980, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:13',\n" +
    '      duration=3980, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:33',\n" +
    '      duration=4000, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:33',\n" +
    '      duration=4000, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:12:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:12:53',\n" +
    '      duration=4020, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:12:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:13:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:13:13',\n" +
    '      duration=4040, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:13:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:13:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:13:33',\n" +
    '      duration=4060, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:13:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:13:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:13:33',\n" +
    '      duration=4060, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:13:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:13:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:13:53',\n" +
    '      duration=4080, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:13:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:13',\n" +
    '      duration=4100, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:13',\n" +
    '      duration=4100, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:33',\n" +
    '      duration=4120, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:33',\n" +
    '      duration=4120, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:33',\n" +
    '      duration=4120, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:53',\n" +
    '      duration=4140, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:14:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:14:53',\n" +
    '      duration=4140, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:14:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:13',\n" +
    '      duration=4160, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:13',\n" +
    '      duration=4160, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:33',\n" +
    '      duration=4180, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:33',\n" +
    '      duration=4180, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:53',\n" +
    '      duration=4200, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:15:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:15:53',\n" +
    '      duration=4200, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:15:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:13',\n" +
    '      duration=4220, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:13',\n" +
    '      duration=4220, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:33',\n" +
    '      duration=4240, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:33',\n" +
    '      duration=4240, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346427.6259',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:53',\n" +
    '      duration=4260, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346438.9788',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:16:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:16:53',\n" +
    '      duration=4260, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346438.9788',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:16:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:17:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:17:13',\n" +
    '      duration=4280, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346471.90220999999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:17:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:17:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:17:33',\n" +
    '      duration=4300, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346512.01579',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:17:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:17:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:17:33',\n" +
    '      duration=4300, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346512.01579',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:17:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:17:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:17:53',\n" +
    '      duration=4320, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346553.64309',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:17:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:17:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:17:53',\n" +
    '      duration=4320, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346553.64309',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:17:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:13',\n" +
    '      duration=4340, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346594.8919599999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:13',\n" +
    '      duration=4340, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346594.8919599999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:33',\n" +
    '      duration=4360, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346636.51926',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:33',\n" +
    '      duration=4360, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346636.51926',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:53',\n" +
    '      duration=4380, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346677.7681299999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:18:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:18:53',\n" +
    '      duration=4380, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346677.7681299999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:18:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:13',\n" +
    '      duration=4400, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346721.2875799999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:13',\n" +
    '      duration=4400, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346721.2875799999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:13',\n" +
    '      duration=4400, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346721.2875799999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:33',\n" +
    '      duration=4420, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346770.10505',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:33',\n" +
    '      duration=4420, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346770.10505',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:53',\n" +
    '      duration=4440, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346819.30095',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:19:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:19:53',\n" +
    '      duration=4440, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346819.30095',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:19:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:20:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:20:13',\n" +
    '      duration=4460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346903.31241',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:20:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:20:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:20:13',\n" +
    '      duration=4460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.8346903.31241',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:20:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:39:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:39:33',\n" +
    '      duration=5620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461101.2313',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:39:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:39:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:39:33',\n" +
    '      duration=5620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461101.2313',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:39:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:39:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:39:53',\n" +
    '      duration=5640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461129.23512',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:39:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:39:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:39:53',\n" +
    '      duration=5640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461129.23512',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:39:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:13',\n" +
    '      duration=5660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461157.23894',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:13',\n" +
    '      duration=5660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461157.23894',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:33',\n" +
    '      duration=5680, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461185.62119',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:33',\n" +
    '      duration=5680, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461185.62119',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:53',\n" +
    '      duration=5700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:40:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:40:53',\n" +
    '      duration=5700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:40:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:41:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:41:13',\n" +
    '      duration=5720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:41:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:41:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:41:33',\n" +
    '      duration=5740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:41:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:41:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:41:33',\n" +
    '      duration=5740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:41:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:41:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:41:53',\n" +
    '      duration=5760, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:41:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:41:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:41:53',\n" +
    '      duration=5760, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:41:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:13',\n" +
    '      duration=5780, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:13',\n" +
    '      duration=5780, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:33',\n" +
    '      duration=5800, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:33',\n" +
    '      duration=5800, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:53',\n" +
    '      duration=5820, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:42:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:42:53',\n" +
    '      duration=5820, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:42:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:13',\n" +
    '      duration=5840, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:13',\n" +
    '      duration=5840, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:33',\n" +
    '      duration=5860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:33',\n" +
    '      duration=5860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:33',\n" +
    '      duration=5860, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:43:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:43:53',\n" +
    '      duration=5880, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:43:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:44:13',\n" +
    '      duration=5900, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:44:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:44:13',\n" +
    '      duration=5900, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:44:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:44:33',\n" +
    '      duration=5920, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:44:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:44:33',\n" +
    '      duration=5920, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:44:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:44:53',\n" +
    '      duration=5940, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:44:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:44:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:13',\n" +
    '      duration=5960, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:13',\n" +
    '      duration=5960, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:33',\n" +
    '      duration=5980, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:33',\n" +
    '      duration=5980, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461204.54269',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:53',\n" +
    '      duration=6000, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461220.81518',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:53',\n" +
    '      duration=6000, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461220.81518',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:45:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:45:53',\n" +
    '      duration=6000, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461220.81518',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:45:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:46:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:46:13',\n" +
    '      duration=6020, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461250.3327199999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:46:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:46:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:46:13',\n" +
    '      duration=6020, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461250.3327199999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:46:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:46:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:46:33',\n" +
    '      duration=6040, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461279.85026',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:46:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:46:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:46:53',\n" +
    '      duration=6060, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461309.74623',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:46:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:46:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:46:53',\n" +
    '      duration=6060, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461309.74623',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:46:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:13',\n" +
    '      duration=6080, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461339.26377',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:13',\n" +
    '      duration=6080, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461339.26377',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:33',\n" +
    '      duration=6100, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461368.7813099999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:33',\n" +
    '      duration=6100, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461368.7813099999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:33',\n" +
    '      duration=6100, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461368.7813099999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:53',\n" +
    '      duration=6120, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461398.6772799999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:47:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:47:53',\n" +
    '      duration=6120, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461398.6772799999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:47:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:13',\n" +
    '      duration=6140, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461428.19482',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:13',\n" +
    '      duration=6140, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461428.19482',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:33',\n" +
    '      duration=6160, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461457.71236',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:33',\n" +
    '      duration=6160, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461457.71236',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:53',\n" +
    '      duration=6180, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461491.39263',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:53',\n" +
    '      duration=6180, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461491.39263',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:48:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:48:53',\n" +
    '      duration=6180, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461491.39263',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:48:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:13',\n" +
    '      duration=6200, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461548.91399',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:13',\n" +
    '      duration=6200, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461548.91399',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:33',\n" +
    '      duration=6220, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461661.68613',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:33',\n" +
    '      duration=6220, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461661.68613',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:33',\n" +
    '      duration=6220, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461661.68613',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:53',\n" +
    '      duration=6240, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:53',\n" +
    '      duration=6240, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:49:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:49:53',\n" +
    '      duration=6240, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:49:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:13',\n" +
    '      duration=6260, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:13',\n" +
    '      duration=6260, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:33',\n" +
    '      duration=6280, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:33',\n" +
    '      duration=6280, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:33',\n" +
    '      duration=6280, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:50:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:50:53',\n" +
    '      duration=6300, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:50:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:51:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:51:13',\n" +
    '      duration=6320, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:51:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:51:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:51:13',\n" +
    '      duration=6320, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:51:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:51:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:51:33',\n" +
    '      duration=6340, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:51:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:51:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:51:53',\n" +
    '      duration=6360, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:51:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:51:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:51:53',\n" +
    '      duration=6360, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:51:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:13',\n" +
    '      duration=6380, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:13',\n" +
    '      duration=6380, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:33',\n" +
    '      duration=6400, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:33',\n" +
    '      duration=6400, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:53',\n" +
    '      duration=6420, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:53',\n" +
    '      duration=6420, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:52:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:52:53',\n" +
    '      duration=6420, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:52:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:53:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:53:13',\n" +
    '      duration=6440, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:53:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:53:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:53:33',\n" +
    '      duration=6460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:53:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:53:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:53:33',\n" +
    '      duration=6460, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:53:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:53:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:53:53',\n" +
    '      duration=6480, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:53:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:53:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:53:53',\n" +
    '      duration=6480, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:53:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:54:13',\n" +
    '      duration=6500, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:54:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:54:13',\n" +
    '      duration=6500, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:54:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:54:13',\n" +
    '      duration=6500, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:54:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:54:33',\n" +
    '      duration=6520, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:54:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:54:53',\n" +
    '      duration=6540, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:54:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:54:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:13',\n" +
    '      duration=6560, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:13',\n" +
    '      duration=6560, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:33',\n" +
    '      duration=6580, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:33',\n" +
    '      duration=6580, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:33',\n" +
    '      duration=6580, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:53',\n" +
    '      duration=6600, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:55:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:55:53',\n" +
    '      duration=6600, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:55:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:13',\n" +
    '      duration=6620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:13',\n" +
    '      duration=6620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:13',\n" +
    '      duration=6620, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:33',\n" +
    '      duration=6640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:33',\n" +
    '      duration=6640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:33',\n" +
    '      duration=6640, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:53',\n" +
    '      duration=6660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:56:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:56:53',\n" +
    '      duration=6660, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:56:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:13',\n" +
    '      duration=6680, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:13',\n" +
    '      duration=6680, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:33',\n" +
    '      duration=6700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:33, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:33',\n" +
    '      duration=6700, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:33' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:53',\n" +
    '      duration=6720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:57:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:57:53',\n" +
    '      duration=6720, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:57:53' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:13',\n" +
    '      duration=6740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:13',\n" +
    '      duration=6740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:13',\n" +
    '      duration=6740, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:13' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:34',\n" +
    '      duration=6761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:34',\n" +
    '      duration=6761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:34',\n" +
    '      duration=6761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:58:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:58:54',\n" +
    '      duration=6781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:58:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:14',\n" +
    '      duration=6801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:14',\n" +
    '      duration=6801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:34',\n" +
    '      duration=6821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:34',\n" +
    '      duration=6821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:54',\n" +
    '      duration=6841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:54',\n" +
    '      duration=6841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 00:59:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 00:59:54',\n" +
    '      duration=6841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 00:59:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:14',\n" +
    '      duration=6861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:14',\n" +
    '      duration=6861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:34',\n" +
    '      duration=6881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:34',\n" +
    '      duration=6881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:54',\n" +
    '      duration=6901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:00:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:00:54',\n" +
    '      duration=6901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:00:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:14',\n" +
    '      duration=6921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:14',\n" +
    '      duration=6921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:14',\n" +
    '      duration=6921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:34',\n" +
    '      duration=6941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:34',\n" +
    '      duration=6941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:34',\n" +
    '      duration=6941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:54',\n" +
    '      duration=6961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:01:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:01:54',\n" +
    '      duration=6961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:01:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:14',\n" +
    '      duration=6981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:14',\n" +
    '      duration=6981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:34',\n" +
    '      duration=7001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:34',\n" +
    '      duration=7001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:34',\n" +
    '      duration=7001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:54',\n" +
    '      duration=7021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:02:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:02:54',\n" +
    '      duration=7021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:02:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:03:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:03:14',\n" +
    '      duration=7041, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:03:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:03:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:03:14',\n" +
    '      duration=7041, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:03:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:03:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:03:34',\n" +
    '      duration=7061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:03:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:03:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:03:34',\n" +
    '      duration=7061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:03:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:03:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:03:54',\n" +
    '      duration=7081, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:03:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:14',\n" +
    '      duration=7101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:14',\n" +
    '      duration=7101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:14',\n" +
    '      duration=7101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:34',\n" +
    '      duration=7121, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:34',\n" +
    '      duration=7121, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:04:54',\n" +
    '      duration=7141, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:04:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:04:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:05:14',\n" +
    '      duration=7161, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:05:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:05:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:05:34',\n" +
    '      duration=7181, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:05:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:05:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:05:34',\n" +
    '      duration=7181, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:05:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:05:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:05:54',\n" +
    '      duration=7201, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:05:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:05:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:05:54',\n" +
    '      duration=7201, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:05:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:14',\n" +
    '      duration=7221, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:14',\n" +
    '      duration=7221, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:34',\n" +
    '      duration=7241, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:34',\n" +
    '      duration=7241, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:54',\n" +
    '      duration=7261, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:54',\n" +
    '      duration=7261, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:06:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:06:54',\n" +
    '      duration=7261, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:06:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:14',\n" +
    '      duration=7281, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:14',\n" +
    '      duration=7281, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:34',\n" +
    '      duration=7301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:34',\n" +
    '      duration=7301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:34',\n" +
    '      duration=7301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:54',\n" +
    '      duration=7321, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:07:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:07:54',\n" +
    '      duration=7321, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:07:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:14',\n" +
    '      duration=7341, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:14',\n" +
    '      duration=7341, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:34',\n" +
    '      duration=7361, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:34',\n" +
    '      duration=7361, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:34',\n" +
    '      duration=7361, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:54',\n" +
    '      duration=7381, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:08:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:08:54',\n" +
    '      duration=7381, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:08:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:09:14',\n" +
    '      duration=7401, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:09:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:09:14',\n" +
    '      duration=7401, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:09:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:09:34',\n" +
    '      duration=7421, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:09:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:09:34',\n" +
    '      duration=7421, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:09:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:09:54',\n" +
    '      duration=7441, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:09:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:09:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:10:14',\n" +
    '      duration=7461, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:10:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:10:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:10:34',\n" +
    '      duration=7481, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:10:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:10:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:10:34',\n" +
    '      duration=7481, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:10:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:10:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:10:54',\n" +
    '      duration=7501, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:10:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:10:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:10:54',\n" +
    '      duration=7501, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:10:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:14',\n" +
    '      duration=7521, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:14',\n" +
    '      duration=7521, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:34',\n" +
    '      duration=7541, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:34',\n" +
    '      duration=7541, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:54',\n" +
    '      duration=7561, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:11:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:11:54',\n" +
    '      duration=7561, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:11:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:14',\n" +
    '      duration=7581, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:14',\n" +
    '      duration=7581, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:34',\n" +
    '      duration=7601, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:34',\n" +
    '      duration=7601, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:54',\n" +
    '      duration=7621, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:12:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:12:54',\n" +
    '      duration=7621, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:12:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:14',\n" +
    '      duration=7641, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:14',\n" +
    '      duration=7641, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:14',\n" +
    '      duration=7641, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:34',\n" +
    '      duration=7661, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:34',\n" +
    '      duration=7661, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:54',\n" +
    '      duration=7681, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:13:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:13:54',\n" +
    '      duration=7681, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:13:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:14:14',\n" +
    '      duration=7701, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:14:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:14:14',\n" +
    '      duration=7701, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:14:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:14:34',\n" +
    '      duration=7721, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:14:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:14:34',\n" +
    '      duration=7721, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:14:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:14:54',\n" +
    '      duration=7741, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:14:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:14:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:14',\n" +
    '      duration=7761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:14',\n" +
    '      duration=7761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:34',\n" +
    '      duration=7781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:34',\n" +
    '      duration=7781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:34',\n" +
    '      duration=7781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:54',\n" +
    '      duration=7801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:15:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:15:54',\n" +
    '      duration=7801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:15:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:14',\n" +
    '      duration=7821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:14',\n" +
    '      duration=7821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:14',\n" +
    '      duration=7821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:34',\n" +
    '      duration=7841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:34',\n" +
    '      duration=7841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:54',\n" +
    '      duration=7861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:54',\n" +
    '      duration=7861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:16:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:16:54',\n" +
    '      duration=7861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:16:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:14',\n" +
    '      duration=7881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:14',\n" +
    '      duration=7881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:34',\n" +
    '      duration=7901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:34',\n" +
    '      duration=7901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:54',\n" +
    '      duration=7921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:17:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:17:54',\n" +
    '      duration=7921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:17:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:14',\n" +
    '      duration=7941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:14',\n" +
    '      duration=7941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:34',\n" +
    '      duration=7961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:34',\n" +
    '      duration=7961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:54',\n" +
    '      duration=7981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:18:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:18:54',\n" +
    '      duration=7981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:18:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:19:14',\n" +
    '      duration=8001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:19:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:19:14',\n" +
    '      duration=8001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:19:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:19:34',\n" +
    '      duration=8021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:19:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:19:34',\n" +
    '      duration=8021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:19:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:19:54',\n" +
    '      duration=8041, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:19:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:19:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:14',\n" +
    '      duration=8061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:14',\n" +
    '      duration=8061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:34',\n" +
    '      duration=8081, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:34',\n" +
    '      duration=8081, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:54',\n" +
    '      duration=8101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:54',\n" +
    '      duration=8101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:20:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:20:54',\n" +
    '      duration=8101, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:20:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:21:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:21:14',\n" +
    '      duration=8121, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:21:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:21:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:21:34',\n" +
    '      duration=8141, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:21:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:21:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:21:34',\n" +
    '      duration=8141, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:21:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:21:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:21:54',\n" +
    '      duration=8161, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:21:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:21:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:21:54',\n" +
    '      duration=8161, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:21:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:14',\n" +
    '      duration=8181, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:14',\n" +
    '      duration=8181, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:14',\n" +
    '      duration=8181, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:34',\n" +
    '      duration=8201, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:34',\n" +
    '      duration=8201, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:54',\n" +
    '      duration=8221, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:22:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:22:54',\n" +
    '      duration=8221, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:22:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:14',\n" +
    '      duration=8241, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:14',\n" +
    '      duration=8241, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:34',\n" +
    '      duration=8261, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:34',\n" +
    '      duration=8261, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:54',\n" +
    '      duration=8281, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:23:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:23:54',\n" +
    '      duration=8281, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:23:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:14',\n" +
    '      duration=8301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:14',\n" +
    '      duration=8301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:14',\n" +
    '      duration=8301, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:34',\n" +
    '      duration=8321, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:34',\n" +
    '      duration=8321, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:24:54',\n" +
    '      duration=8341, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:24:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:24:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js:24:42)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:25:14',\n" +
    '      duration=8361, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:25:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:25:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:25:14',\n" +
    '      duration=8361, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:25:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:25:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:25:34',\n" +
    '      duration=8381, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:25:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:25:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:25:54',\n" +
    '      duration=8401, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:25:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:25:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:25:54',\n" +
    '      duration=8401, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:25:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:14',\n" +
    '      duration=8421, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:14',\n" +
    '      duration=8421, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:34',\n" +
    '      duration=8441, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:34',\n" +
    '      duration=8441, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:54',\n" +
    '      duration=8461, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:26:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:26:54',\n" +
    '      duration=8461, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:26:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:14',\n" +
    '      duration=8481, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:14',\n" +
    '      duration=8481, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:14',\n" +
    '      duration=8481, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461683.63507',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:34',\n" +
    '      duration=8501, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461698.77227',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:34',\n" +
    '      duration=8501, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461698.77227',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:54',\n" +
    '      duration=8521, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461745.69759',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:27:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:27:54',\n" +
    '      duration=8521, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461745.69759',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:27:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:14',\n" +
    '      duration=8541, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461838.03451',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:14',\n" +
    '      duration=8541, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461838.03451',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:34',\n" +
    '      duration=8561, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:34',\n" +
    '      duration=8561, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:54',\n" +
    '      duration=8581, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:28:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:28:54',\n" +
    '      duration=8581, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:28:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:14',\n" +
    '      duration=8601, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:14',\n" +
    '      duration=8601, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:34',\n" +
    '      duration=8621, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:34',\n" +
    '      duration=8621, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:34',\n" +
    '      duration=8621, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:54',\n" +
    '      duration=8641, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:29:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:29:54',\n" +
    '      duration=8641, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:29:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:14',\n" +
    '      duration=8661, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:14',\n" +
    '      duration=8661, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:34',\n" +
    '      duration=8681, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:34',\n" +
    '      duration=8681, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:54',\n" +
    '      duration=8701, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:54',\n" +
    '      duration=8701, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:30:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:30:54',\n" +
    '      duration=8701, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:30:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:14',\n" +
    '      duration=8721, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:14',\n" +
    '      duration=8721, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:34',\n" +
    '      duration=8741, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:34',\n" +
    '      duration=8741, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:54',\n" +
    '      duration=8761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:31:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:31:54',\n" +
    '      duration=8761, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:31:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:14',\n" +
    '      duration=8781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:14',\n" +
    '      duration=8781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:14',\n" +
    '      duration=8781, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:34',\n" +
    '      duration=8801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:34',\n" +
    '      duration=8801, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:54',\n" +
    '      duration=8821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:32:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:32:54',\n" +
    '      duration=8821, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:32:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:14',\n" +
    '      duration=8841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:14',\n" +
    '      duration=8841, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:34',\n" +
    '      duration=8861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:34',\n" +
    '      duration=8861, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:54',\n" +
    '      duration=8881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:33:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:33:54',\n" +
    '      duration=8881, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:33:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:14',\n" +
    '      duration=8901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:14',\n" +
    '      duration=8901, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:34',\n" +
    '      duration=8921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:34',\n" +
    '      duration=8921, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:54',\n" +
    '      duration=8941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:34:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:34:54',\n" +
    '      duration=8941, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:34:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:14',\n" +
    '      duration=8961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:14',\n" +
    '      duration=8961, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:34',\n" +
    '      duration=8981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:34',\n" +
    '      duration=8981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:34',\n" +
    '      duration=8981, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461934.15573',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:54',\n" +
    '      duration=9001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461939.07532',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:35:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:35:54',\n" +
    '      duration=9001, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83461939.07532',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:35:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:14',\n" +
    '      duration=9021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462039.35927',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:14',\n" +
    '      duration=9021, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462039.35927',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:14' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:34',\n" +
    '      duration=9041, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462179.7568',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:34',\n" +
    '      duration=9041, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462179.7568',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:34' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:54',\n" +
    '      duration=9061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462321.28962',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:36:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 01:36:54',\n" +
    '      duration=9061, totalProduction=NaN,\n' +
    "      productionAtEnd='2353.83462321.28962',\n" +
    "      speed=NaN, timestamp='06/28/2024 01:36:54' \n" +
    '    WHERE \n' +
    '      id=15588\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 01:37:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:14',\n" +
    '      duration=10441, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:22:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:14',\n" +
    '      duration=10441, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:22:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:34',\n" +
    '      duration=10461, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:34' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:22:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:34',\n" +
    '      duration=10461, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:34' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:22:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:54',\n" +
    '      duration=10481, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:54' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:22:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:22:54',\n" +
    '      duration=10481, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:22:54' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:14',\n" +
    '      duration=10501, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:14',\n" +
    '      duration=10501, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:34',\n" +
    '      duration=10521, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:34' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:34',\n" +
    '      duration=10521, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:34' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:54',\n" +
    '      duration=10541, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:54' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:23:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:23:54',\n" +
    '      duration=10541, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848290.64444',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:23:54' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:24:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:24:14',\n" +
    '      duration=10561, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848312.97181',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:24:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:24:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:24:14',\n" +
    '      duration=10561, totalProduction=NaN,\n' +
    "      productionAtEnd='8396.604848312.97181',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:24:14' \n" +
    '    WHERE \n' +
    '      id=15723\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:24:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:32:54',\n" +
    '      duration=10821, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:32:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:32:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:32:54',\n" +
    '      duration=10821, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:32:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:14',\n" +
    '      duration=10841, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:14',\n" +
    '      duration=10841, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:34',\n" +
    '      duration=10861, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:34',\n" +
    '      duration=10861, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:54',\n" +
    '      duration=10881, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:54',\n" +
    '      duration=10881, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:33:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:33:54',\n" +
    '      duration=10881, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:33:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:14',\n" +
    '      duration=10901, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:14',\n" +
    '      duration=10901, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:34',\n" +
    '      duration=10921, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:34',\n" +
    '      duration=10921, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:34',\n" +
    '      duration=10921, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:54',\n" +
    '      duration=10941, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:34:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:34:54',\n" +
    '      duration=10941, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:34:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:14',\n" +
    '      duration=10961, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:14',\n" +
    '      duration=10961, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:14' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:34',\n" +
    '      duration=10981, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:34, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:34',\n" +
    '      duration=10981, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710110.89274',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:34' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:54',\n" +
    '      duration=11001, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710195.66106',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:54',\n" +
    '      duration=11001, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710195.66106',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:35:54, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 02:35:54',\n" +
    '      duration=11001, totalProduction=NaN,\n' +
    "      productionAtEnd='10236.1530710195.66106',\n" +
    "      speed=NaN, timestamp='06/28/2024 02:35:54' \n" +
    '    WHERE \n' +
    '      id=15748\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 02:36:14, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 07:25:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:17',\n" +
    '      duration=24003, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.6350728.76068',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:00:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:17',\n" +
    '      duration=24003, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.6350728.76068',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:00:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:37',\n" +
    '      duration=24023, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507138.50538',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:00:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:37',\n" +
    '      duration=24023, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507138.50538',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:00:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:57',\n" +
    '      duration=24043, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507279.65977',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:00:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:00:57',\n" +
    '      duration=24043, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507279.65977',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:00:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:17',\n" +
    '      duration=24063, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507421.19259',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:17',\n" +
    '      duration=24063, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507421.19259',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:37',\n" +
    '      duration=24083, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507562.72541',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:37',\n" +
    '      duration=24083, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507562.72541',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:37',\n" +
    '      duration=24083, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507562.72541',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:57',\n" +
    '      duration=24103, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507704.25823',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:01:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:01:57',\n" +
    '      duration=24103, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507704.25823',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:01:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:02:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:02:17',\n" +
    '      duration=24123, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507845.7910499999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:02:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:02:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:02:17',\n" +
    '      duration=24123, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.63507845.7910499999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:02:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:17',\n" +
    '      duration=24183, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071270.38951',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:17',\n" +
    '      duration=24183, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071270.38951',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:17' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:37',\n" +
    '      duration=24203, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071411.9223299999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:37, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:37',\n" +
    '      duration=24203, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071411.9223299999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:37' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:57',\n" +
    '      duration=24223, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071553.45515',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:03:57, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 08:03:57',\n" +
    '      duration=24223, totalProduction=NaN,\n' +
    "      productionAtEnd='1683.635071553.45515',\n" +
    "      speed=NaN, timestamp='06/28/2024 08:03:57' \n" +
    '    WHERE \n' +
    '      id=16257\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 08:04:17, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:37:38',\n" +
    '      duration=23843, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227556.89417',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:37:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:37:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:37:58',\n" +
    '      duration=23863, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227698.04856',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:37:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:37:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:37:58',\n" +
    '      duration=23863, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227698.04856',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:37:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:37:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:37:58',\n" +
    '      duration=23863, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227698.04856',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:37:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:18',\n" +
    '      duration=23883, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227839.58138',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:18',\n" +
    '      duration=23883, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227839.58138',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:18',\n" +
    '      duration=23883, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227839.58138',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:38',\n" +
    '      duration=23903, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847227981.1142',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:58',\n" +
    '      duration=23923, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228122.64702',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:38:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:38:58',\n" +
    '      duration=23923, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228122.64702',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:38:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:18',\n" +
    '      duration=23943, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228264.17984',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:38',\n" +
    '      duration=23963, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228405.712659999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:38',\n" +
    '      duration=23963, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228405.712659999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:38',\n" +
    '      duration=23963, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228405.712659999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:58',\n" +
    '      duration=23983, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228547.245479999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:39:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:39:58',\n" +
    '      duration=23983, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228547.245479999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:39:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:40:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:40:18',\n" +
    '      duration=24003, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228688.778299999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:40:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:40:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:40:18',\n" +
    '      duration=24003, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228688.778299999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:40:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:40:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:40:38',\n" +
    '      duration=24023, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228830.31112',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:40:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:40:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:40:58',\n" +
    '      duration=24043, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228971.465509999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:40:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:40:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:40:58',\n" +
    '      duration=24043, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847228971.465509999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:40:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:18',\n" +
    '      duration=24063, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229112.99833',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:18',\n" +
    '      duration=24063, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229112.99833',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:38',\n" +
    '      duration=24083, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229254.53115',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:38',\n" +
    '      duration=24083, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229254.53115',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:58',\n" +
    '      duration=24103, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229396.06397',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:41:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:41:58',\n" +
    '      duration=24103, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229396.06397',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:41:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:18',\n" +
    '      duration=24123, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229537.59679',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:18',\n" +
    '      duration=24123, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229537.59679',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:38',\n" +
    '      duration=24143, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229679.12961',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:38',\n" +
    '      duration=24143, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229679.12961',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:58',\n" +
    '      duration=24163, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229820.66243',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:42:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:42:58',\n" +
    '      duration=24163, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229820.66243',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:42:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:18',\n" +
    '      duration=24183, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229962.19525',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:18',\n" +
    '      duration=24183, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847229962.19525',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:38',\n" +
    '      duration=24203, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230103.728069999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:38',\n" +
    '      duration=24203, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230103.728069999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:38',\n" +
    '      duration=24203, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230103.728069999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:58',\n" +
    '      duration=24223, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230245.260889999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:43:58, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:43:58',\n" +
    '      duration=24223, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230245.260889999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:43:58' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:18',\n" +
    '      duration=24243, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230386.793709999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:18, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:18',\n" +
    '      duration=24243, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230386.793709999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:18' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:38',\n" +
    '      duration=24263, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230528.32653',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:38, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:38',\n" +
    '      duration=24263, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230528.32653',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:38' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:59',\n" +
    '      duration=24284, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230669.85935',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:44:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:44:59',\n" +
    '      duration=24284, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230669.85935',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:44:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:19',\n" +
    '      duration=24304, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230811.39217',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:19',\n" +
    '      duration=24304, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230811.39217',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:19',\n" +
    '      duration=24304, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230811.39217',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:39',\n" +
    '      duration=24324, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230952.92499',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:39',\n" +
    '      duration=24324, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847230952.92499',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:59',\n" +
    '      duration=24344, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231094.45781',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:45:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:45:59',\n" +
    '      duration=24344, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231094.45781',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:45:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:19',\n" +
    '      duration=24364, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231235.99063',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:19',\n" +
    '      duration=24364, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231235.99063',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:39',\n" +
    '      duration=24384, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231377.52345',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:39',\n" +
    '      duration=24384, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231377.52345',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:59',\n" +
    '      duration=24404, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231519.056269999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:46:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:46:59',\n" +
    '      duration=24404, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231519.056269999997',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:46:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:47:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:47:19',\n" +
    '      duration=24424, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231660.589089999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:47:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:47:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:47:19',\n" +
    '      duration=24424, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231660.589089999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:47:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:47:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:47:39',\n" +
    '      duration=24444, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231802.121909999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:47:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:47:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:47:39',\n" +
    '      duration=24444, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231802.121909999998',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:47:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:47:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:47:59',\n" +
    '      duration=24464, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847231943.65473',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:47:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:48:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:48:19',\n" +
    '      duration=24484, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232085.18755',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:48:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:48:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:48:19',\n" +
    '      duration=24484, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232085.18755',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:48:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:48:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:48:39',\n" +
    '      duration=24504, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232226.72037',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:48:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:48:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:48:39',\n" +
    '      duration=24504, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232226.72037',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:48:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:48:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:48:59',\n" +
    '      duration=24524, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232368.25319',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:48:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:49:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:49:19',\n" +
    '      duration=24544, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232509.78601',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:49:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:49:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:49:19',\n" +
    '      duration=24544, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232509.78601',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:49:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:49:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:49:39',\n" +
    '      duration=24564, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232651.31883',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:49:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:49:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:49:39',\n" +
    '      duration=24564, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232651.31883',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:49:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:49:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:49:59',\n" +
    '      duration=24584, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232792.85165',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:49:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:19',\n" +
    '      duration=24604, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232934.38447',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:19',\n" +
    '      duration=24604, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847232934.38447',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:39',\n" +
    '      duration=24624, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233075.91729',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:39',\n" +
    '      duration=24624, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233075.91729',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:39',\n" +
    '      duration=24624, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233075.91729',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:59',\n" +
    '      duration=24644, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233217.07168',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:50:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:50:59',\n" +
    '      duration=24644, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233217.07168',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:50:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:51:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:51:19',\n" +
    '      duration=24664, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233358.6045',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:51:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:51:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:51:39',\n" +
    '      duration=24684, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233500.13732',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:51:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:51:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:51:39',\n" +
    '      duration=24684, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233500.13732',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:51:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:51:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:51:59',\n" +
    '      duration=24704, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233641.67014',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:51:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:51:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:51:59',\n" +
    '      duration=24704, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233641.67014',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:51:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:19',\n" +
    '      duration=24724, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233783.20296',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:19',\n" +
    '      duration=24724, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233783.20296',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:39',\n" +
    '      duration=24744, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233924.735779999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:39',\n" +
    '      duration=24744, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847233924.735779999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:59',\n" +
    '      duration=24764, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234066.268599999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:52:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:52:59',\n" +
    '      duration=24764, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234066.268599999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:52:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:19',\n" +
    '      duration=24784, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234207.801419999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:19',\n" +
    '      duration=24784, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234207.801419999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:39',\n" +
    '      duration=24804, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234349.33424',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:39',\n" +
    '      duration=24804, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234349.33424',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:59',\n" +
    '      duration=24824, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234490.86706',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:53:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:53:59',\n" +
    '      duration=24824, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234490.86706',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:53:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:19',\n" +
    '      duration=24844, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234632.39988',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:19',\n" +
    '      duration=24844, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234632.39988',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:39',\n" +
    '      duration=24864, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234773.9327',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:39',\n" +
    '      duration=24864, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234773.9327',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:39',\n" +
    '      duration=24864, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234773.9327',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:59',\n" +
    '      duration=24884, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234915.08709',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:54:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:54:59',\n" +
    '      duration=24884, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847234915.08709',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:54:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:19',\n" +
    '      duration=24904, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:19',\n" +
    '      duration=24904, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:39',\n" +
    '      duration=24924, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:39',\n" +
    '      duration=24924, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:59',\n" +
    '      duration=24944, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:55:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:55:59',\n" +
    '      duration=24944, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:55:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:19',\n" +
    '      duration=24964, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:19',\n" +
    '      duration=24964, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:19',\n" +
    '      duration=24964, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:39',\n" +
    '      duration=24984, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:39',\n" +
    '      duration=24984, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:59',\n" +
    '      duration=25004, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:56:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:56:59',\n" +
    '      duration=25004, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:56:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:19',\n" +
    '      duration=25024, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:19',\n" +
    '      duration=25024, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:39',\n" +
    '      duration=25044, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:39',\n" +
    '      duration=25044, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:59',\n" +
    '      duration=25064, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:57:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:57:59',\n" +
    '      duration=25064, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:57:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:19',\n" +
    '      duration=25084, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:19',\n" +
    '      duration=25084, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:39',\n" +
    '      duration=25104, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:39',\n" +
    '      duration=25104, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235023.6965',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:59',\n" +
    '      duration=25124, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235105.437379999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:58:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:58:59',\n" +
    '      duration=25124, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235105.437379999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:58:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:19',\n" +
    '      duration=25144, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235245.83491',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:19',\n" +
    '      duration=25144, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235245.83491',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:39',\n" +
    '      duration=25164, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235387.36773',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:39',\n" +
    '      duration=25164, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235387.36773',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:59',\n" +
    '      duration=25184, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235528.90055',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 10:59:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 10:59:59',\n" +
    '      duration=25184, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235528.90055',\n" +
    "      speed=NaN, timestamp='06/28/2024 10:59:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:19',\n" +
    '      duration=25204, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235670.43337',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:19',\n" +
    '      duration=25204, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235670.43337',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:39',\n" +
    '      duration=25224, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235811.96619',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:39',\n" +
    '      duration=25224, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235811.96619',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:59',\n" +
    '      duration=25244, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235953.49901',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:00:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:00:59',\n" +
    '      duration=25244, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847235953.49901',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:00:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:01:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:01:19',\n" +
    '      duration=25264, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236095.03183',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:01:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:01:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:01:39',\n" +
    '      duration=25284, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236236.56465',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:01:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:01:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:01:39',\n" +
    '      duration=25284, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236236.56465',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:01:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:01:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:01:59',\n" +
    '      duration=25304, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236378.09747',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:01:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:01:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:01:59',\n" +
    '      duration=25304, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236378.09747',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:01:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:02:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:02:19',\n" +
    '      duration=25324, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236519.63029',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:02:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:02:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:02:39',\n" +
    '      duration=25344, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236661.16311',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:02:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:02:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:02:39',\n" +
    '      duration=25344, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236661.16311',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:02:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:02:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:02:59',\n" +
    '      duration=25364, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236802.69593',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:02:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:02:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:02:59',\n" +
    '      duration=25364, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236802.69593',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:02:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:19',\n" +
    '      duration=25384, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236944.22875',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:19',\n" +
    '      duration=25384, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847236944.22875',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:39',\n" +
    '      duration=25404, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237085.76157',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:39',\n" +
    '      duration=25404, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237085.76157',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:59',\n" +
    '      duration=25424, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237227.67282',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:59',\n" +
    '      duration=25424, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237227.67282',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:03:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:03:59',\n" +
    '      duration=25424, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237227.67282',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:03:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:04:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:04:19',\n" +
    '      duration=25444, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237369.20564',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:04:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:04:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:04:19',\n" +
    '      duration=25444, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237369.20564',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:04:19' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:04:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:04:39',\n" +
    '      duration=25464, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237510.73846',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:04:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:04:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:04:39',\n" +
    '      duration=25464, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237510.73846',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:04:39' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:04:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:04:59',\n" +
    '      duration=25484, totalProduction=NaN,\n' +
    "      productionAtEnd='37730.9847237652.27128',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:04:59' \n" +
    '    WHERE \n' +
    '      id=16713\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:05:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:19',\n" +
    '      duration=24684, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344587.75789',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:19' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:21:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:19',\n" +
    '      duration=24684, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344587.75789',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:19' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:21:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:39',\n" +
    '      duration=24704, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344729.29071',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:39' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:21:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:39',\n" +
    '      duration=24704, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344729.29071',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:39' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:21:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:59',\n" +
    '      duration=24724, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344870.82353',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:59' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:21:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:21:59',\n" +
    '      duration=24724, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675344870.82353',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:21:59' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:22:19',\n" +
    '      duration=24744, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675345012.35635',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:22:19' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:22:19',\n" +
    '      duration=24744, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675345012.35635',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:22:19' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:22:19',\n" +
    '      duration=24744, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675345012.35635',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:22:19' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:22:39',\n" +
    '      duration=24764, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675345153.88917',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:22:39' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:22:39',\n" +
    '      duration=24764, totalProduction=NaN,\n' +
    "      productionAtEnd='45173.5675345153.88917',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:22:39' \n" +
    '    WHERE \n' +
    '      id=16749\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:22:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:37:39',\n" +
    '      duration=21503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651522.48764',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:37:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:37:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:37:39',\n" +
    '      duration=21503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651522.48764',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:37:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:37:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:37:59',\n" +
    '      duration=21523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651664.02046',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:37:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:37:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:37:59',\n" +
    '      duration=21523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651664.02046',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:37:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:19',\n" +
    '      duration=21543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651805.55328',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:19',\n" +
    '      duration=21543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651805.55328',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:19',\n" +
    '      duration=21543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651805.55328',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:39',\n" +
    '      duration=21563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651947.0861',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:39',\n" +
    '      duration=21563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576651947.0861',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:59',\n" +
    '      duration=21583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652088.61892',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:38:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:38:59',\n" +
    '      duration=21583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652088.61892',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:38:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:39:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:39:19',\n" +
    '      duration=21603, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652230.15174',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:39:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:39:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:39:39',\n" +
    '      duration=21623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652371.68456',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:39:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:39:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:39:39',\n" +
    '      duration=21623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652371.68456',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:39:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:39:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:39:59',\n" +
    '      duration=21643, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652513.21738',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:39:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:39:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:39:59',\n" +
    '      duration=21643, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652513.21738',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:39:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:19',\n" +
    '      duration=21663, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652654.750199999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:19',\n" +
    '      duration=21663, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652654.750199999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:19',\n" +
    '      duration=21663, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652654.750199999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:39',\n" +
    '      duration=21683, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652796.283019999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:39',\n" +
    '      duration=21683, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652796.283019999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:59',\n" +
    '      duration=21703, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652937.43741',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:40:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:40:59',\n" +
    '      duration=21703, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576652937.43741',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:40:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:19',\n" +
    '      duration=21723, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653078.97023',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:19',\n" +
    '      duration=21723, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653078.97023',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:39',\n" +
    '      duration=21743, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653220.50305',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:39',\n" +
    '      duration=21743, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653220.50305',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:59',\n" +
    '      duration=21763, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653362.03587',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:41:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:41:59',\n" +
    '      duration=21763, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653362.03587',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:41:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:19',\n" +
    '      duration=21783, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653503.56869',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:19',\n" +
    '      duration=21783, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653503.56869',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:39',\n" +
    '      duration=21803, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653645.10151',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:39',\n" +
    '      duration=21803, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653645.10151',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:59',\n" +
    '      duration=21823, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653786.63433',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:42:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:42:59',\n" +
    '      duration=21823, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653786.63433',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:42:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:19',\n" +
    '      duration=21843, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653928.16715',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:19',\n" +
    '      duration=21843, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576653928.16715',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:39',\n" +
    '      duration=21863, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654069.69997',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:39',\n" +
    '      duration=21863, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654069.69997',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:59',\n" +
    '      duration=21883, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654211.23279',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:43:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:43:59',\n" +
    '      duration=21883, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654211.23279',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:43:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:19',\n" +
    '      duration=21903, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654352.765609999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:19',\n" +
    '      duration=21903, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654352.765609999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:39',\n" +
    '      duration=21923, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654494.298429999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:39',\n" +
    '      duration=21923, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654494.298429999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:59',\n" +
    '      duration=21943, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654635.45282',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:44:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:44:59',\n" +
    '      duration=21943, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654635.45282',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:44:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:19',\n" +
    '      duration=21963, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654776.98564',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:19',\n" +
    '      duration=21963, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654776.98564',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:39',\n" +
    '      duration=21983, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654918.51846',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:39',\n" +
    '      duration=21983, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576654918.51846',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:59',\n" +
    '      duration=22003, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655060.05128',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:45:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:45:59',\n" +
    '      duration=22003, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655060.05128',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:45:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:46:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:46:19',\n" +
    '      duration=22023, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655201.5841',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:46:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:46:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:46:19',\n" +
    '      duration=22023, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655201.5841',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:46:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:46:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:46:39',\n" +
    '      duration=22043, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655343.11692',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:46:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:46:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:46:39',\n" +
    '      duration=22043, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655343.11692',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:46:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:46:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:46:59',\n" +
    '      duration=22063, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655484.64974',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:46:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:19',\n" +
    '      duration=22083, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655626.18256',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:19',\n" +
    '      duration=22083, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655626.18256',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:39',\n" +
    '      duration=22103, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655767.71538',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:39',\n" +
    '      duration=22103, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655767.71538',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:59',\n" +
    '      duration=22123, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655908.86977',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:47:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:47:59',\n" +
    '      duration=22123, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576655908.86977',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:47:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:19',\n" +
    '      duration=22143, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656050.40259',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:19',\n" +
    '      duration=22143, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656050.40259',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:19',\n" +
    '      duration=22143, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656050.40259',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:39',\n" +
    '      duration=22163, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656191.93541',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:59',\n" +
    '      duration=22183, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656333.46823',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:48:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:48:59',\n" +
    '      duration=22183, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656333.46823',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:48:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:49:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:49:19',\n" +
    '      duration=22203, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656475.00105',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:49:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:49:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:49:19',\n" +
    '      duration=22203, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656475.00105',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:49:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:49:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:49:39',\n" +
    '      duration=22223, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656616.53387',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:49:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:49:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:49:39',\n" +
    '      duration=22223, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656616.53387',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:49:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:49:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:49:59',\n" +
    '      duration=22243, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656758.06669',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:49:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:50:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:50:19',\n" +
    '      duration=22263, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656899.59951',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:50:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:50:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:50:19',\n" +
    '      duration=22263, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576656899.59951',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:50:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:50:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:50:39',\n" +
    '      duration=22283, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657040.753899999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:50:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:50:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:50:59',\n" +
    '      duration=22303, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657182.28672',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:50:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:50:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:50:59',\n" +
    '      duration=22303, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657182.28672',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:50:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:19',\n" +
    '      duration=22323, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657323.81954',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:19',\n" +
    '      duration=22323, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657323.81954',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:39',\n" +
    '      duration=22343, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657465.35236',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:39',\n" +
    '      duration=22343, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657465.35236',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:59',\n" +
    '      duration=22363, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657606.88518',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:51:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:51:59',\n" +
    '      duration=22363, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657606.88518',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:51:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:19',\n" +
    '      duration=22383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657748.418',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:19',\n" +
    '      duration=22383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657748.418',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:19',\n" +
    '      duration=22383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657748.418',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:39',\n" +
    '      duration=22403, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657889.57239',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:39',\n" +
    '      duration=22403, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657889.57239',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:39',\n" +
    '      duration=22403, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576657889.57239',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:59',\n" +
    '      duration=22423, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658031.10521',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:52:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:52:59',\n" +
    '      duration=22423, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658031.10521',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:52:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:19',\n" +
    '      duration=22443, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658172.638029999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:19',\n" +
    '      duration=22443, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658172.638029999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:39',\n" +
    '      duration=22463, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658314.170849999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:39',\n" +
    '      duration=22463, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658314.170849999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:59',\n" +
    '      duration=22483, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658455.703669999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:53:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:53:59',\n" +
    '      duration=22483, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658455.703669999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:53:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:19',\n" +
    '      duration=22503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658596.85806',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:19',\n" +
    '      duration=22503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658596.85806',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:39',\n" +
    '      duration=22523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:39',\n" +
    '      duration=22523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:59',\n" +
    '      duration=22543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:54:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:54:59',\n" +
    '      duration=22543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:54:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:55:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:55:19',\n" +
    '      duration=22563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:55:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:55:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:55:39',\n" +
    '      duration=22583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:55:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:55:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:55:39',\n" +
    '      duration=22583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:55:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:55:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:55:59',\n" +
    '      duration=22603, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:55:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:55:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:55:59',\n" +
    '      duration=22603, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:55:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:19',\n" +
    '      duration=22623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:19',\n" +
    '      duration=22623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:39',\n" +
    '      duration=22643, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:39',\n" +
    '      duration=22643, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:59',\n" +
    '      duration=22663, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:56:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:56:59',\n" +
    '      duration=22663, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:56:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:19',\n" +
    '      duration=22683, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:19',\n" +
    '      duration=22683, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:19',\n" +
    '      duration=22683, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:39',\n" +
    '      duration=22703, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:39',\n" +
    '      duration=22703, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:59',\n" +
    '      duration=22723, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:57:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:57:59',\n" +
    '      duration=22723, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:57:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:58:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:58:19',\n" +
    '      duration=22743, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:58:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:58:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:58:19',\n" +
    '      duration=22743, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:58:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:58:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:58:39',\n" +
    '      duration=22763, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:58:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:58:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:58:39',\n" +
    '      duration=22763, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:58:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:58:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:58:59',\n" +
    '      duration=22783, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:58:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:19',\n" +
    '      duration=22803, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:19',\n" +
    '      duration=22803, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:39',\n" +
    '      duration=22823, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:39',\n" +
    '      duration=22823, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:39',\n" +
    '      duration=22823, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:59',\n" +
    '      duration=22843, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 11:59:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 11:59:59',\n" +
    '      duration=22843, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658729.686989999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 11:59:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:00:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:00:19',\n" +
    '      duration=22863, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658747.85163',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:00:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:00:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:00:19',\n" +
    '      duration=22863, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658747.85163',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:00:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:00:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:00:39',\n" +
    '      duration=22883, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658867.435509999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:00:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:00:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:00:39',\n" +
    '      duration=22883, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658867.435509999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:00:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:00:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:00:59',\n" +
    '      duration=22903, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:00:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:01:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:01:19',\n" +
    '      duration=22923, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:01:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:01:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:01:19',\n" +
    '      duration=22923, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:01:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:01:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:01:39',\n" +
    '      duration=22943, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:01:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:01:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:01:59',\n" +
    '      duration=22963, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:01:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:01:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:01:59',\n" +
    '      duration=22963, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:01:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:19',\n" +
    '      duration=22983, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:19',\n" +
    '      duration=22983, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:39',\n" +
    '      duration=23003, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:39',\n" +
    '      duration=23003, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:59',\n" +
    '      duration=23023, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:02:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:02:59',\n" +
    '      duration=23023, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:02:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:19',\n" +
    '      duration=23043, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:19',\n" +
    '      duration=23043, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658907.170659999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:39',\n" +
    '      duration=23063, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658961.28615',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:39',\n" +
    '      duration=23063, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576658961.28615',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:59',\n" +
    '      duration=23083, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659093.358219999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:03:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:03:59',\n" +
    '      duration=23083, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659093.358219999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:03:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:04:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:04:19',\n" +
    '      duration=23103, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659234.891039999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:04:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:04:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:04:19',\n" +
    '      duration=23103, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659234.891039999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:04:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:04:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:04:39',\n" +
    '      duration=23123, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659376.423859999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:04:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:04:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:04:39',\n" +
    '      duration=23123, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659376.423859999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:04:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:04:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:04:59',\n" +
    '      duration=23143, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659517.956679999996',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:04:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:05:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:05:19',\n" +
    '      duration=23163, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659659.86793',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:05:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:05:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:05:39',\n" +
    '      duration=23183, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659801.40075',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:05:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:05:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:05:39',\n" +
    '      duration=23183, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659801.40075',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:05:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:05:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:05:59',\n" +
    '      duration=23203, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659942.93357',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:05:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:05:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:05:59',\n" +
    '      duration=23203, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576659942.93357',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:05:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:19',\n" +
    '      duration=23223, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660084.46639',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:19',\n" +
    '      duration=23223, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660084.46639',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:39',\n" +
    '      duration=23243, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660225.99921',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:39',\n" +
    '      duration=23243, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660225.99921',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:59',\n" +
    '      duration=23263, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660367.532029999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:06:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:06:59',\n" +
    '      duration=23263, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660367.532029999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:06:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:19',\n" +
    '      duration=23283, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660509.064849999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:19',\n" +
    '      duration=23283, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660509.064849999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:39',\n" +
    '      duration=23303, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660650.9761',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:39',\n" +
    '      duration=23303, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660650.9761',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:59',\n" +
    '      duration=23323, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660792.50892',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:07:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:07:59',\n" +
    '      duration=23323, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660792.50892',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:07:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:08:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:08:19',\n" +
    '      duration=23343, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576660934.04174',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:08:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:08:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:08:39',\n" +
    '      duration=23363, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661075.57456',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:08:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:08:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:08:59',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661217.10738',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:08:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:08:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:08:59',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661217.10738',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:08:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:08:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:08:59',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661217.10738',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:08:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:09:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:09:19',\n" +
    '      duration=23403, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661358.6402',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:09:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:09:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:09:19',\n" +
    '      duration=23403, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661358.6402',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:09:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:09:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:09:39',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661500.173019999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:09:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:09:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:09:39',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661500.173019999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:09:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:09:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:09:59',\n" +
    '      duration=23443, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661642.08427',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:09:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:19',\n" +
    '      duration=23463, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661783.61709',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:19',\n" +
    '      duration=23463, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661783.61709',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:39',\n" +
    '      duration=23483, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661925.14991',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:39',\n" +
    '      duration=23483, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576661925.14991',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:59',\n" +
    '      duration=23503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662066.68273',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:10:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:10:59',\n" +
    '      duration=23503, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662066.68273',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:10:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:19',\n" +
    '      duration=23523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662208.21555',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:19',\n" +
    '      duration=23523, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662208.21555',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:39',\n" +
    '      duration=23543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662349.74837',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:39',\n" +
    '      duration=23543, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662349.74837',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:59',\n" +
    '      duration=23563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662491.28119',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:59',\n" +
    '      duration=23563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662491.28119',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:11:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:11:59',\n" +
    '      duration=23563, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662491.28119',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:11:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:19',\n" +
    '      duration=23583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662632.814009999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:19',\n" +
    '      duration=23583, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662632.814009999995',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:19' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:39',\n" +
    '      duration=23603, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662774.72526',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:39',\n" +
    '      duration=23603, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662774.72526',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:39' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:59',\n" +
    '      duration=23623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662916.25808',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:12:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:12:59',\n" +
    '      duration=23623, totalProduction=NaN,\n' +
    "      productionAtEnd='63032.0576662916.25808',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:12:59' \n" +
    '    WHERE \n' +
    '      id=16793\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:13:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:26:59',\n" +
    '      duration=23043, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:26:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:26:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:26:59',\n" +
    '      duration=23043, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:26:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:19',\n" +
    '      duration=23063, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:19',\n" +
    '      duration=23063, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:39',\n" +
    '      duration=23083, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:39',\n" +
    '      duration=23083, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:59',\n" +
    '      duration=23103, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:27:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:27:59',\n" +
    '      duration=23103, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:27:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:19',\n" +
    '      duration=23123, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:39',\n" +
    '      duration=23143, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:39',\n" +
    '      duration=23143, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:39',\n" +
    '      duration=23143, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:59',\n" +
    '      duration=23163, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:28:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:28:59',\n" +
    '      duration=23163, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:28:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:19',\n" +
    '      duration=23183, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:19',\n" +
    '      duration=23183, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:39',\n" +
    '      duration=23203, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:39',\n" +
    '      duration=23203, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:39',\n" +
    '      duration=23203, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:59',\n" +
    '      duration=23223, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:29:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:29:59',\n" +
    '      duration=23223, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:29:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:19',\n" +
    '      duration=23243, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:19',\n" +
    '      duration=23243, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:19',\n" +
    '      duration=23243, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:39',\n" +
    '      duration=23263, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:39',\n" +
    '      duration=23263, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:39',\n" +
    '      duration=23263, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:59',\n" +
    '      duration=23283, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:30:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:30:59',\n" +
    '      duration=23283, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:30:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:19',\n" +
    '      duration=23303, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:19',\n" +
    '      duration=23303, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:39',\n" +
    '      duration=23323, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:39',\n" +
    '      duration=23323, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:59',\n" +
    '      duration=23343, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:31:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:31:59',\n" +
    '      duration=23343, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:31:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:19',\n" +
    '      duration=23363, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:19',\n" +
    '      duration=23363, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:39',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:39',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:59',\n" +
    '      duration=23403, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:32:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:32:59',\n" +
    '      duration=23403, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:32:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:19',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:19',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:39',\n" +
    '      duration=23443, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:39',\n" +
    '      duration=23443, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:39',\n" +
    '      duration=23443, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:39' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:59',\n" +
    '      duration=23463, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:33:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:33:59',\n" +
    '      duration=23463, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:33:59' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:34:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:34:19',\n" +
    '      duration=23483, totalProduction=NaN,\n' +
    "      productionAtEnd='64587.02652999999664518.90913',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:34:19' \n" +
    '    WHERE \n' +
    '      id=16834\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:34:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:40:19',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967019.57457',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:40:19' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:40:19, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:40:19',\n" +
    '      duration=23383, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967019.57457',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:40:19' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:40:39, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:40:39',\n" +
    '      duration=23403, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967161.10739',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:40:39' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:40:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:40:59',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967302.64021',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:40:59' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:40:59, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:40:59',\n" +
    '      duration=23423, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967302.64021',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:40:59' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:41:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:41:20',\n" +
    '      duration=23444, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967444.17302999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:41:20' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:41:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:41:20',\n" +
    '      duration=23444, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967444.17302999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:41:20' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:41:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:41:40',\n" +
    '      duration=23464, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967585.70585',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:41:40' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:41:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:41:40',\n" +
    '      duration=23464, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967585.70585',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:41:40' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:42:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:42:00',\n" +
    '      duration=23484, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967727.23866999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:42:00' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:42:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:42:00',\n" +
    '      duration=23484, totalProduction=NaN,\n' +
    "      productionAtEnd='67806.7089699999967727.23866999999',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:42:00' \n" +
    '    WHERE \n' +
    '      id=16851\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:42:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:00',\n" +
    '      duration=22324, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969001.03405',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:45:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:00',\n" +
    '      duration=22324, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969001.03405',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:45:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:20',\n" +
    '      duration=22344, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969142.56687',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:45:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:20',\n" +
    '      duration=22344, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969142.56687',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:45:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:40',\n" +
    '      duration=22364, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969284.09969',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:45:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:45:40',\n" +
    '      duration=22364, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969284.09969',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:45:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:00',\n" +
    '      duration=22384, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969426.01094',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:00',\n" +
    '      duration=22384, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969426.01094',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:20',\n" +
    '      duration=22404, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969567.54376',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:20',\n" +
    '      duration=22404, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969567.54376',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:40',\n" +
    '      duration=22424, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969709.07658',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:46:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:46:40',\n" +
    '      duration=22424, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969709.07658',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:46:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:00',\n" +
    '      duration=22444, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969850.6094',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:00',\n" +
    '      duration=22444, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969850.6094',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:20',\n" +
    '      duration=22464, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969992.14222',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:20',\n" +
    '      duration=22464, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669969992.14222',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:40',\n" +
    '      duration=22484, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970133.67504',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:47:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:47:40',\n" +
    '      duration=22484, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970133.67504',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:47:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:00',\n" +
    '      duration=22504, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970275.20786',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:00',\n" +
    '      duration=22504, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970275.20786',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:00',\n" +
    '      duration=22504, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970275.20786',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:20',\n" +
    '      duration=22524, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970416.74068',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:20',\n" +
    '      duration=22524, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970416.74068',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:40',\n" +
    '      duration=22544, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970558.2735',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:48:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:48:40',\n" +
    '      duration=22544, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970558.2735',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:48:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:00',\n" +
    '      duration=22564, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970699.80632',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:00',\n" +
    '      duration=22564, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970699.80632',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:20',\n" +
    '      duration=22584, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970841.33914',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:20',\n" +
    '      duration=22584, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970841.33914',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:40',\n" +
    '      duration=22604, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970982.87196',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:49:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:49:40',\n" +
    '      duration=22604, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669970982.87196',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:49:40' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:50:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:50:00',\n" +
    '      duration=22624, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669971124.40478',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:50:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:50:00, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:50:00',\n" +
    '      duration=22624, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669971124.40478',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:50:00' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:50:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:50:20',\n" +
    '      duration=22644, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669971265.9376',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:50:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:50:20, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: ER_BAD_FIELD_ERROR: Unknown column 'NaN' in 'field list'
    at Query.Sequence._packetToError (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:47:14)
    at Query.ErrorPacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Query.js:79:18)
    at Protocol._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:88:28)
    at Socket.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    --------------------
    at Protocol._enqueue (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Protocol.js:144:48)
    at PoolConnection.query (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:198:25)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:35:18
    at new Promise (<anonymous>)
    at performQuery (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:34:12)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:1368:29 {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sqlMessage: "Unknown column 'NaN' in 'field list'",
  sqlState: '42S22',
  index: 0,
  sql: '\n' +
    '    UPDATE events SET \n' +
    "      Status='Completed', endTime='06/28/2024 12:50:20',\n" +
    '      duration=22644, totalProduction=NaN,\n' +
    "      productionAtEnd='76137.4669971265.9376',\n" +
    "      speed=NaN, timestamp='06/28/2024 12:50:20' \n" +
    '    WHERE \n' +
    '      id=16859\n' +
    '    '
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/28/2024 12:50:40, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 08:24:50, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 13:23:52, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 13:24:12, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
node:internal/modules/cjs/loader:1031
  throw err;
  ^

Error: Cannot find module 'winston'
Require stack:
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js
- /home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js:1:17)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/logger.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/sendMail.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/utils/scheduledFunctions/scheduledTest.js',
    '/home3/pakis104/oeeb-k.pakistanautomation.com.pk/app.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 14:32:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 14:32:53, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:481:36
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 14:33:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 14:34:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 14:34:13, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 18:12:55, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 18:12:55, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/create.js:828:37
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 06/29/2024 19:22:55, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: Mon Jul 01 2024 18:06:01 GMT+0000 (Coordinated Universal Time), _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/attendance/create.js:11:6
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error caught in global error handler: Cannot set headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: Mon Jul 01 2024 19:08:20 GMT+0000 (Coordinated Universal Time), _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/attendance/create.js:11:6
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Error caught in global error handler: Cannot set headers after they are sent to the client
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:40:30
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:13:7
    at Object.module.exports [as verify] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/jsonwebtoken/verify.js:70:12)
    at verifyToken (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:10:9)
    at verifyTokenAndAdmin (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/middleware/verifyToken.js:35:3)
/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.header (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:795:10)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:175:12)
    at ServerResponse.json (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:279:15)
    at ServerResponse.send (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/response.js:163:21)
    at Query.<anonymous> (/home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/lines/select.js:34:32)
    at Query.<anonymous> (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24) {
  code: 'ERR_HTTP_HEADERS_SENT'
}
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 07/02/2024 00:08:45, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 07/02/2024 09:37:29, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments: 
[0] _isAMomentObject: true, _isUTC: true, _useUTC: true, _l: undefined, _i: 07/02/2024 09:38:09, _f: undefined, _strict: undefined, _locale: [object Object]
Error
    at Function.createFromInputFallback (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:324:25)
    at configFromString (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:2613:19)
    at configFromInput (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3056:13)
    at prepareConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3039:13)
    at createFromConfig (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3006:44)
    at createLocalOrUTC (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:3100:16)
    at Function.createUTC [as utc] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/moment/moment.js:106:16)
    at /home3/pakis104/oeeb-k.pakistanautomation.com.pk/routes/deviceData/deviceInput.js:38:63
    at Layer.handle [as handle_request] (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/layer.js:95:5)
    at next (/home3/pakis104/nodevenv/oeeb-k.pakistanautomation.com.pk/16/lib/node_modules/express/lib/router/route.js:149:13)
