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:18312) [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)
failed to udpate any row of <Media>
failed to udpate any row of <Media>
failed to udpate any row of <Media>
failed to udpate any row of <Media>
failed to udpate any row of <Media>
failed to udpate any row of <Media>
failed to udpate any row of <Media>
sql query execution error:

BEGIN TRY
    EXEC POST_SYNC '104982C1-B28B-4260-A67B-9011967A7F3E', 1732188187038
END TRY
BEGIN CATCH
    PRINT ERROR_MESSAGE()
END CATCH
    
{"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":""}
sql query execution error:
SELECT TOP 1 * FROM [Webshop] 
                    WHERE [private_domain]=N'eyt-car.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'jelini.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:

BEGIN TRY
    UPDATE orderdetails SET [title]=N'هپی داگ مینی ادالت', [order_id]=N'06ad5537-3d76-4eac-9ed9-0e197d95c788', [warehouse_id]=N'9606e867-1eb1-407e-adc6-d4e8d446c1b7', [product_variation_id]=N'fec1f22b-e21d-4360-bf5f-85027d336a76', [quantity]=1, [price]=5390000, [discount]=0, [unit]=N'عدد', [unit2]=NULL, [quantity_coef]=1, [is_unit2_default]=0, [price_class]=1, [has_tax]=0, [sequence]=0, [description]=NULL, [created_at]=1732188028056, is_deleted=0, changed_at=IIF(1732188175683>changed_at, 1732188175683, changed_at), sync_ver=1732188188592 WHERE uuid='2B23E4A0-74BA-4BF5-9158-39BBB064C3CB' AND changed_at<1732188175683
END TRY
BEGIN CATCH
END CATCH

{"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":""}
cannot update bulk 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: ''
}
sql query execution error:

BEGIN TRY
    UPDATE orderdetails SET [title]=N'اسپری خوشبوکننده بدن بیوتکس مردانه مدل مارلی لیتون', [order_id]=N'1257be35-807d-46eb-8480-2c007f0da43f', [warehouse_id]=N'fe13a680-6428-4ca9-8a23-f4aeeff0fcf8', [product_variation_id]=N'5a332206-fe75-48f6-aac7-3181c2d84cbf', [quantity]=1, [price]=195000, [discount]=0, [unit]=N'عدد', [unit2]=NULL, [quantity_coef]=1, [is_unit2_default]=0, [price_class]=1, [has_tax]=0, [sequence]=0, [description]=NULL, [created_at]=1732121884720, is_deleted=0, changed_at=IIF(1732188183095>changed_at, 1732188183095, changed_at), sync_ver=1732188190195 WHERE uuid='54EA569C-86D7-4C05-B891-D33940A99B57' AND changed_at<1732188183095
END TRY
BEGIN CATCH
END CATCH

{"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":""}
cannot update bulk 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: ''
}