iisnode encountered an error when processing the request.

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1013
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The last 64k of the output generated by the node.exe process to stderr is shown below:

(node:7520) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
sql query execution error:

            INSERT INTO [WebshopVisit] ([uuid],[webshop_id],[webshop_customer_id],[product_id],[user_agent]) 
                VALUES (N'045B39FE-51A5-4C1B-B73D-4ED890AD413C',N'9C763F62-45E1-4656-BFDE-07BF3C555C0B',NULL,NULL,N'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36')

            {"code":"EREQUEST","originalError":{"sqlstate":"HYT00","code":0,"severity":0,"serverName":"","procName":"","lineNumber":0},"name":"RequestError","number":0,"lineNumber":0,"state":"HYT00","class":0,"serverName":"","procName":""}
        
RequestError: Query timeout expired
    at handleError (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\msnodesqlv8\request.js:276:21)
    at StreamEvents.emit (node:events:514:28)
    at C:\inetpub\TX_Kalaban\node_modules\msnodesqlv8\lib\reader.js:83:20
    at Array.forEach (<anonymous>)
    at Query.routeStatementError (C:\inetpub\TX_Kalaban\node_modules\msnodesqlv8\lib\reader.js:73:19)
    at C:\inetpub\TX_Kalaban\node_modules\msnodesqlv8\lib\reader.js:239:12
    at C:\inetpub\TX_Kalaban\node_modules\msnodesqlv8\lib\driver.js:191:13
    at Immediate.<anonymous> (C:\inetpub\TX_Kalaban\node_modules\msnodesqlv8\lib\driver.js:167:9)
    at process.processImmediate (node:internal/timers:478:21) {
  code: 'EREQUEST',
  originalError: [Error: [Microsoft][SQL Server Native Client 11.0]Query timeout expired] {
    sqlstate: 'HYT00',
    code: 0,
    severity: 0,
    serverName: '',
    procName: '',
    lineNumber: 0
  },
  number: 0,
  lineNumber: 0,
  state: 'HYT00',
  class: 0,
  serverName: '',
  procName: ''
}
unhandledRejection: RequestError: Query timeout expired
sql query execution error:

            SELECT TOP 1 * FROM [Webshop] 
                    WHERE [private_domain]=N'payasou.ir'

            {"code":"ECONNCLOSED","name":"ConnectionError"}
        
ConnectionError: Connection is closed.
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:497:37)
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\msnodesqlv8\request.js:248:11)
    at C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:461:12
    at new Promise (<anonymous>)
    at Request.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:460:12)
    at ConnectionPool.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\connection-pool.js:607:84)
    at exports.executeQuery (C:\inetpub\TX_Kalaban\library\dbManager.js:14:27)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
    at async Webshop.selectTop1By (C:\inetpub\TX_Kalaban\components\dao.js:200:32) {
  code: 'ECONNCLOSED'
}
unhandledRejection: ConnectionError: Connection is closed.
sql query execution error:

            SELECT TOP 1 * FROM [Webshop] 
                    WHERE [private_domain]=N'yazdketab.com'

            {"code":"ECONNCLOSED","name":"ConnectionError"}
        
ConnectionError: Connection is closed.
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:497:37)
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\msnodesqlv8\request.js:248:11)
    at C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:461:12
    at new Promise (<anonymous>)
    at Request.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:460:12)
    at ConnectionPool.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\connection-pool.js:607:84)
    at exports.executeQuery (C:\inetpub\TX_Kalaban\library\dbManager.js:14:27)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
    at async Webshop.selectTop1By (C:\inetpub\TX_Kalaban\components\dao.js:200:32) {
  code: 'ECONNCLOSED'
}
unhandledRejection: ConnectionError: Connection is closed.
sql query execution error:

            SELECT TOP 1 * FROM [Webshop] 
                    WHERE [private_domain]=N'dalwear.ir'

            {"code":"ECONNCLOSED","name":"ConnectionError"}
        
ConnectionError: Connection is closed.
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:497:37)
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\msnodesqlv8\request.js:248:11)
    at C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:461:12
    at new Promise (<anonymous>)
    at Request.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:460:12)
    at ConnectionPool.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\connection-pool.js:607:84)
    at exports.executeQuery (C:\inetpub\TX_Kalaban\library\dbManager.js:14:27)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
    at async Webshop.selectTop1By (C:\inetpub\TX_Kalaban\components\dao.js:200:32) {
  code: 'ECONNCLOSED'
}
unhandledRejection: ConnectionError: Connection is closed.
sql query execution error:

            SELECT TOP 1 * FROM [Webshop] 
                    WHERE [domain]=N'hiba-baby-shop-demo'

            {"code":"ECONNCLOSED","name":"ConnectionError"}
        
ConnectionError: Connection is closed.
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:497:37)
    at Request._query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\msnodesqlv8\request.js:248:11)
    at C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:461:12
    at new Promise (<anonymous>)
    at Request.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\request.js:460:12)
    at ConnectionPool.query (C:\inetpub\TX_Kalaban\node_modules\mssql\lib\base\connection-pool.js:607:84)
    at exports.executeQuery (C:\inetpub\TX_Kalaban\library\dbManager.js:14:27)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)
    at async Webshop.selectTop1By (C:\inetpub\TX_Kalaban\components\dao.js:200:32) {
  code: 'ECONNCLOSED'
}
unhandledRejection: ConnectionError: Connection is closed.